3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = array(); echo "eedfdfdfd";exit; $result = array_pad($input, 10, ''); $res1=array('4'=>"dfdfd"); for($result as $key=>$val) { $result1[$key]=$res1[$key]; } //$result=array_intersect($result,$res1); print_r($result1);
Output for 5.4.13
Parse error: syntax error, unexpected 'as' (T_AS), expecting ';' in /in/rtUl1 on line 8
Process exited with code 255.
Output for 5.4.0 - 5.4.12
Parse error: syntax error, unexpected 'as' (T_AS), expecting ';' in rtUl1 on line 8
Process exited with code 255.
Output for 5.3.23
Parse error: syntax error, unexpected T_AS, expecting ';' in /in/rtUl1 on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.22
Parse error: syntax error, unexpected T_AS, expecting ';' in rtUl1 on line 8
Process exited with code 255.