3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(serialize('test')); var_dump(serialize(1)); var_dump(serialize(true)); var_dump(serialize([])); var_dump(serialize(1.5)); var_dump(serialize(null)); var_dump(unserialize('s:4:"test"')); var_dump(unserialize('i:1;')); var_dump(unserialize('b:1')); var_dump(unserialize('a:0:{}')); var_dump(unserialize('d:1.5')); var_dump(unserialize('N'));
Output for git.master, git.master_jit
string(11) "s:4:"test";" string(4) "i:1;" string(4) "b:1;" string(6) "a:0:{}" string(6) "d:1.5;" string(2) "N;" Notice: unserialize(): Error at offset 10 of 10 bytes in /in/a45bm on line 10 bool(false) int(1) Notice: unserialize(): Error at offset 0 of 3 bytes in /in/a45bm on line 12 bool(false) array(0) { } Notice: unserialize(): Error at offset 0 of 5 bytes in /in/a45bm on line 14 bool(false) Notice: unserialize(): Error at offset 0 of 1 bytes in /in/a45bm on line 15 bool(false)
Output for rfc.property-hooks
string(11) "s:4:"test";" string(4) "i:1;" string(4) "b:1;" string(6) "a:0:{}" string(6) "d:1.5;" string(2) "N;" Warning: unserialize(): Error at offset 10 of 10 bytes in /in/a45bm on line 10 bool(false) int(1) Warning: unserialize(): Error at offset 0 of 3 bytes in /in/a45bm on line 12 bool(false) array(0) { } Warning: unserialize(): Error at offset 0 of 5 bytes in /in/a45bm on line 14 bool(false) Warning: unserialize(): Error at offset 0 of 1 bytes in /in/a45bm on line 15 bool(false)

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
62.5 ms | 402 KiB | 8 Q