3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $line = "and 0.26818 0.14346 -0.27877 0.016257 0.11384 0.69923 -0.51332 -0.47368 -0.33075 -0.13834 0.2702 0.30938 -0.45012 -0.4127 -0.09932 0.038085 0.029749 0.10076 -0.25058 -0.51818 0.34558 0.44922 0.48791 -0.080866 -0.10121 -1.3777 -0.10866 -0.23201 0.012839 -0.46508 3.8463 0.31362 0.13643 -0.52244 0.3302 0.33707 -0.35601 0.32431 0.12041 0.3512 -0.069043 0.36885 0.25168 -0.24517 0.25381 0.1367 -0.31178 -0.6321 -0.25028 -0.38097"; $word = explode(" ",$line)[0]; echo $word."<br/>"; $vector = implode( array_shift( explode(' ',$line) ) );
based on JS6Ng
Output for 7.0.0 - 7.1.0
and<br/> Notice: Only variables should be passed by reference in /in/7ZL0Y on line 5 Warning: implode(): Argument must be an array in /in/7ZL0Y on line 5
Output for hhvm-3.12.0
and<br/> Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/7ZL0Y on line 5
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.6.28
and<br/> Strict Standards: Only variables should be passed by reference in /in/7ZL0Y on line 5 Warning: implode(): Argument must be an array in /in/7ZL0Y on line 5
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/7ZL0Y on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/7ZL0Y on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/7ZL0Y on line 3
Process exited with code 255.