3v4l.org

run code in 300+ PHP versions simultaneously
<?php // test.php class xctf{ public $flag = '111'; public function __wakeup(){ exit('bad requests'); } } // 测试1:正常反序列化 $obj = new xctf(); $ser = serialize($obj); echo "正常序列化: " . $ser . "\n\n"; // 测试2:修改数量后的字符串 $payload = 'O:4:"xctf":2:{s:4:"flag";s:3:"111";}'; echo "修改数量: " . $payload . "\n"; $result = unserialize($payload); var_dump($result); ?>
Output for git.master_jit, git.master
正常序列化: O:4:"xctf":1:{s:4:"flag";s:3:"111";} 修改数量: O:4:"xctf":2:{s:4:"flag";s:3:"111";} Warning: unserialize(): Unexpected end of serialized data in /in/9iGE6 on line 18 Warning: unserialize(): Error at offset 35 of 36 bytes in /in/9iGE6 on line 18 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:
49.1 ms | 723 KiB | 4 Q