3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $comma_separated = implode(',', unserialize( urldecode( '1 2' ))); echo $comma_separated;
Output for 5.2.5 - 5.6.28, 7.0.0 - 7.1.0
Notice: unserialize(): Error at offset 0 of 3 bytes in /in/mHPVW on line 3 Warning: implode(): Invalid arguments passed in /in/mHPVW on line 3
Output for hhvm-3.10.0 - 3.12.0
Notice: Unable to unserialize: [1 2]. Expected ':' but got ' '. in /in/mHPVW on line 3 Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/mHPVW on line 3
Output for 4.3.2 - 5.2.4
Notice: unserialize(): Error at offset 0 of 3 bytes in /in/mHPVW on line 3 Warning: implode(): Bad arguments. in /in/mHPVW on line 3
Output for 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 0 of 3 bytes in /in/mHPVW on line 3 Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/mHPVW on line 3