3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $mkis3=array(arrya('name'=>'Olga','variant'=>25), arrya('name'=>'Vasya','variant'=>12)); for ($i=0, $size=sizeof($mkis3); $i<size;++$i) { $people[$i]['variant']=rand(1,30); echo $people[$i]['variant']."\n"; } ?>
based on dvoYr
Output for 7.0.0
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ',' or ')' in /in/h1jhX on line 2
Process exited with code 255.
Output for 5.4.10 - 5.6.16
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /in/h1jhX on line 2
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /in/h1jhX on line 2
Process exited with code 255.