3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $w = 2000; $h = 5000; $height = 1500; $width = ($w/$h)*$height; echo $width.'x'.$height; $tab = array(array('test' =>'toto','a'=>'plop'), array('test' =>'toto2','a'=>'plop2')); echo implode('<br/>',implode(',',$tab));
Output for 5.2.5 - 5.6.28, 7.0.0 - 7.1.0
600x1500 Notice: Array to string conversion in /in/akHgh on line 9 Notice: Array to string conversion in /in/akHgh on line 9 Warning: implode(): Invalid arguments passed in /in/akHgh on line 9
Output for hhvm-3.12.0
600x1500 Notice: Array to string conversion in /in/akHgh on line 9 Notice: Array to string conversion in /in/akHgh on line 9 Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/akHgh on line 9
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.2 - 5.2.4
600x1500 Notice: Array to string conversion in /in/akHgh on line 9 Notice: Array to string conversion in /in/akHgh on line 9 Warning: implode(): Bad arguments. in /in/akHgh on line 9
Output for 4.3.0 - 4.3.1
600x1500 Notice: Array to string conversion in /in/akHgh on line 9 Notice: Array to string conversion in /in/akHgh on line 9 Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/akHgh on line 9