3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo 'hello'; $arr=array(ping,dong,hi); var_dump($arr);
based on pSram
Output for 7.2.0 - 7.2.6
hello Warning: Use of undefined constant ping - assumed 'ping' (this will throw an Error in a future version of PHP) in /in/3qreg on line 4 Warning: Use of undefined constant dong - assumed 'dong' (this will throw an Error in a future version of PHP) in /in/3qreg on line 4 Warning: Use of undefined constant hi - assumed 'hi' (this will throw an Error in a future version of PHP) in /in/3qreg on line 4 array(3) { [0]=> string(4) "ping" [1]=> string(4) "dong" [2]=> string(2) "hi" }
Output for 4.3.0 - 7.1.20
hello Notice: Use of undefined constant ping - assumed 'ping' in /in/3qreg on line 4 Notice: Use of undefined constant dong - assumed 'dong' in /in/3qreg on line 4 Notice: Use of undefined constant hi - assumed 'hi' in /in/3qreg on line 4 array(3) { [0]=> string(4) "ping" [1]=> string(4) "dong" [2]=> string(2) "hi" }