3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $chi=0; function asy($val){ global $chi; echo $val+1; $chi+=1; } $x=array(); $x[0]=asy; echo $chi; echo $x[0](6); echo $x[0](12); echo $chi; ?>
based on pdW7b
Output for 7.2.0
Warning: Use of undefined constant asy - assumed 'asy' (this will throw an Error in a future version of PHP) in /in/UF8lQ on line 9 07132
Output for 5.3.18 - 7.1.10
Notice: Use of undefined constant asy - assumed 'asy' in /in/UF8lQ on line 9 07132