<?php require_once __DIR__.'/_executor.php'; return function () { session_start(); if (isset($_SESSION['count'])) { $_SESSION['count']++; } else { $_SESSION['count'] = 0; } echo 'Count: '.$_SESSION['count'].PHP_EOL; };