3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $myarr = [1,2,3,4,5,6,7]; $test = array_shift($myarr); echo test;
based on BSsmD
Output for 7.2.0
Warning: Use of undefined constant test - assumed 'test' (this will throw an Error in a future version of PHP) in /in/LGBa6 on line 4 test
Output for 5.4.11 - 7.1.10
Notice: Use of undefined constant test - assumed 'test' in /in/LGBa6 on line 4 test
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/LGBa6 on line 2
Process exited with code 255.