3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 'a:2:{i:0;O:9:"exception":1:{s:17:"'."\0".'Exception'."\0".'string";a:1:{i:0;i:1;}}i:2;r:3;}'; $x = unserialize($x); for ($i = 0; $i < 5; $i++) { $v[$i] = 'hi'.$i; } echo($x[0]); var_dump($x[1]);

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.0120.00316.50
8.3.50.0080.01021.13
8.3.40.0090.01218.79
8.3.30.0070.00718.84
8.3.20.0040.00420.33
8.3.10.0000.00823.67
8.3.00.0080.00019.80
8.2.180.0070.00716.63
8.2.170.0110.00622.96
8.2.160.0080.00819.45
8.2.150.0080.00024.18
8.2.140.0090.00924.66
8.2.130.0050.00326.16
8.2.120.0040.00417.48
8.2.110.0030.00620.56
8.2.100.0040.00817.91
8.2.90.0040.00418.09
8.2.80.0000.00917.97
8.2.70.0030.00517.50
8.2.60.0090.00017.92
8.2.50.0050.00318.07
8.2.40.0040.00419.48
8.2.30.0030.00519.77
8.2.20.0040.00417.67
8.2.10.0030.00518.06
8.2.00.0040.00417.96
8.1.280.0030.01425.92
8.1.270.0040.00420.43
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00422.10
8.1.230.0040.00720.85
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0000.01317.35
8.1.190.0050.00317.13
8.1.180.0040.00418.10
8.1.170.0090.00018.53
8.1.160.0030.00521.92
8.1.150.0040.00418.75
8.1.140.0080.00017.35
8.1.130.0000.00817.65
8.1.120.0000.00717.42
8.1.110.0030.00517.38
8.1.100.0000.00817.39
8.1.90.0040.00417.29
8.1.80.0040.00417.42
8.1.70.0070.00017.30
8.1.60.0040.00417.48
8.1.50.0030.00517.43
8.1.40.0040.00417.50
8.1.30.0040.00417.71
8.1.20.0020.00517.70
8.1.10.0040.00417.57
8.1.00.0040.00417.54
8.0.300.0000.00720.01
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0030.00317.27
8.0.260.0070.00018.36
8.0.250.0080.00017.02
8.0.240.0040.00417.07
8.0.230.0070.00017.04
8.0.220.0000.00716.95
8.0.210.0070.00016.98
8.0.200.0030.00316.94
8.0.190.0000.00717.02
8.0.180.0000.01016.97
8.0.170.0000.00816.93
8.0.160.0090.00016.92
8.0.150.0080.00016.79
8.0.140.0040.00416.95
8.0.130.0000.00513.34
8.0.120.0040.00416.96
8.0.110.0040.00417.01
8.0.100.0030.00516.83
8.0.90.0000.00716.92
8.0.80.0090.01216.93
8.0.70.0100.00016.82
8.0.60.0000.00816.92
8.0.50.0000.00816.89
8.0.30.0130.00617.18
8.0.20.0070.01217.40
8.0.10.0070.00016.84
8.0.00.0140.00516.99
7.4.330.0000.00615.08
7.4.320.0030.00316.37
7.4.300.0000.00616.52
7.4.290.0000.00716.44
7.4.280.0070.00016.45
7.4.270.0030.00316.32
7.4.260.0040.00416.53
7.4.250.0080.00016.32
7.4.240.0020.00616.38
7.4.230.0040.00416.31
7.4.220.0040.01416.48
7.4.210.0080.00816.42
7.4.200.0000.00716.46
7.4.160.0080.00816.29
7.4.150.0100.01017.40
7.4.140.0110.00817.86
7.4.130.0070.01316.46
7.4.120.0080.01316.66
7.4.110.0140.00316.48
7.4.100.0110.00716.69
7.4.90.0100.00716.51
7.4.80.0160.00819.39
7.4.70.0070.01116.40
7.4.60.0090.00916.61
7.4.50.0020.00216.40
7.4.40.0070.01016.69
7.4.30.0070.01416.54
7.4.00.0030.01214.92
7.3.330.0050.00013.23
7.3.320.0050.00013.16
7.3.310.0070.00016.36
7.3.300.0030.00316.26
7.3.290.0050.00216.22
7.3.280.0100.00916.43
7.3.270.0060.01217.40
7.3.260.0120.00616.46
7.3.250.0090.01416.38
7.3.240.0090.01216.38
7.3.230.0090.01316.39
7.3.210.0130.00416.26
7.3.200.0090.00916.37
7.3.190.0060.01216.65
7.3.180.0130.00316.47
7.3.170.0180.00016.62
7.3.160.0090.00916.52
7.2.330.0090.00916.88
7.2.320.0000.02116.66
7.2.310.0130.00316.57
7.2.300.0110.00516.94
7.2.290.0160.00716.77
7.2.60.0070.01116.84
7.2.00.0040.01119.54
7.1.200.0030.00615.84
7.1.100.0040.00718.29
7.1.70.0030.00617.22
7.1.60.0100.01320.03
7.1.50.0070.01134.56
7.1.00.0030.07722.50
7.0.200.0030.00716.88
7.0.60.0170.07319.96
7.0.50.0070.06717.81
7.0.40.0130.07720.15
7.0.30.0230.04320.11
7.0.20.0270.08320.30
7.0.10.0130.05320.09
7.0.00.0000.04320.12
5.6.280.0030.03021.12
5.6.210.0030.08720.70
5.6.200.0130.03718.18
5.6.190.0000.09320.57
5.6.180.0270.07020.53
5.6.170.0200.03720.56
5.6.160.0030.05320.52
5.6.150.0070.04718.18
5.6.140.0130.07018.11
5.6.130.0000.04718.11
5.6.120.0070.07021.12
5.6.110.0070.04021.13
5.6.100.0130.07020.98
5.6.90.0070.07020.94
5.6.80.0100.06320.52
5.5.350.2900.04020.48
5.5.340.0070.08318.08
5.5.330.0030.09020.28
5.5.320.0300.06320.41
5.5.310.0300.07720.30
5.5.300.0100.07717.95
5.5.290.0100.07717.94
5.5.280.0170.07320.89
5.5.270.0130.08020.86
5.5.260.0100.08320.89
5.5.250.0100.04320.61
5.5.240.0070.06720.29
5.4.450.0170.05719.18
5.4.440.0200.07319.19
5.4.430.0200.06319.42
5.4.420.0270.06319.51
5.4.410.0270.04019.34
5.4.400.0300.06319.20
5.4.390.0200.03718.87
5.4.380.0270.04719.13
5.4.370.0270.06318.84
5.4.360.0170.06018.87
5.4.350.0200.06719.20
5.4.340.0130.05019.09
5.4.320.0230.07319.09
5.4.310.0330.06019.13
5.4.300.0270.06718.87
5.4.290.0300.06319.23
5.4.280.0170.05019.19
5.4.270.0200.03719.21
5.4.260.0300.03319.24
5.4.250.0200.04318.94
5.4.240.0200.07318.98
5.4.230.0400.04319.14
5.4.220.0170.07719.30
5.4.210.0170.06019.23
5.4.200.0170.06019.07
5.4.190.0270.05019.30
5.4.180.0170.07019.15
5.4.170.0100.08718.86
5.4.160.0170.07718.83
5.4.150.0230.04018.95
5.4.140.0100.08016.35
5.4.130.0100.05316.28
5.4.120.0130.05316.38
5.4.110.0200.05316.27
5.4.100.0230.03016.53
5.4.90.0300.04016.54
5.4.80.0170.04316.52

preferences:
43.39 ms | 401 KiB | 5 Q