3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(serialize(123)); $test = new String(); var_dump(serialize($test)); //var_dump(unserialize("123"));
based on mRLe6
Output for 7.0.0 - 7.2.0
string(6) "i:123;" Fatal error: Uncaught Error: Class 'String' not found in /in/2npIm:5 Stack trace: #0 {main} thrown in /in/2npIm on line 5
Process exited with code 255.
Output for 5.4.0 - 5.6.28
string(6) "i:123;" Fatal error: Class 'String' not found in /in/2npIm on line 5
Process exited with code 255.