3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function asy($val){ echo $val+1; } $x=array(); $x[0]=asy; echo $x[0](6); echo $x[0](12); ?>
based on R0Y5a
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/SS754 on line 7 713
Output for 5.3.18 - 7.1.10
Notice: Use of undefined constant asy - assumed 'asy' in /in/SS754 on line 7 713