3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('A' => 1, 'B' => 0, 'B1' => 1); echo serialize($a); echo '<BR>'; var_export($a); var_export(deserialize($a));
based on vi0Dt
Output for 7.0.0 - 7.1.0
a:3:{s:1:"A";i:1;s:1:"B";i:0;s:2:"B1";i:1;}<BR>array ( 'A' => 1, 'B' => 0, 'B1' => 1, ) Fatal error: Uncaught Error: Call to undefined function deserialize() in /in/UZ2E6:6 Stack trace: #0 {main} thrown in /in/UZ2E6 on line 6
Process exited with code 255.
Output for 5.0.0 - 5.6.28
a:3:{s:1:"A";i:1;s:1:"B";i:0;s:2:"B1";i:1;}<BR>array ( 'A' => 1, 'B' => 0, 'B1' => 1, ) Fatal error: Call to undefined function deserialize() in /in/UZ2E6 on line 6
Process exited with code 255.
Output for 4.4.5 - 4.4.9
a:3:{s:1:"A";i:1;s:1:"B";i:0;s:2:"B1";i:1;}<BR>array ( 'A' => 1, 'B' => 0, 'B1' => 1, ) Fatal error: Call to undefined function: deserialize() in /in/UZ2E6 on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.4
a:3:{s:1:"A";i:1;s:1:"B";i:0;s:2:"B1";i:1;}<BR>array ( 'A' => 1, 'B' => 0, 'B1' => 1, ) Fatal error: Call to undefined function: deserialize() in /in/UZ2E6 on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
a:3:{s:1:"A";i:1;s:1:"B";i:0;s:2:"B1";i:1;}<BR>array ( 'A' => 1, 'B' => 0, 'B1' => 1, ) Fatal error: Call to undefined function: deserialize() in /in/UZ2E6 on line 6