3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(5, array(4)); echo '<pre>'; print_r($a); $a = serialize(array(5, array(4))); echo '<pre>'; print_r(unserialize($a));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<pre>Array ( [0] => 5 [1] => Array ( [0] => 4 ) ) <pre>Array ( [0] => 5 [1] => Array ( [0] => 4 ) )