3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php session_start(); //for($f=file(__FILE__),$i=0;$i<19+$_SESSION['count'];$i++) echo $f[$i]; //$_SESSION['count'] = 0; $_SESSION['time'] = 1498678043; $_SESSION['count']+=($_SESSION['time']==time()-2)?2:-$_SESSION['count']; $_SESSION['time']=time(); echo $_SESSION['count'] . " / " . $_SESSION['time'];
based on mLtJH
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0alpha1
Notice: Undefined index: count in /in/UPpp5 on line 6 Notice: Undefined index: count in /in/UPpp5 on line 6 0 / 1498678334
Output for hhvm-3.15.4
Notice: Undefined index: count in /in/UPpp5 on line 6 0 / 1498678334