3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public function __destruct() { throw new Exception('It works!'); } } for ($i = 0; $i < 2; ++$i) { $a = new a(); }

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.0040.01116.88
8.3.50.0070.00716.30
8.3.40.0160.00018.84
8.3.30.0160.00318.80
8.3.20.0040.00420.38
8.3.10.0000.00721.76
8.3.00.0000.00721.79
8.2.180.0110.00416.73
8.2.170.0040.01122.96
8.2.160.0070.01020.39
8.2.150.0040.00425.66
8.2.140.0000.00724.66
8.2.130.0040.00420.98
8.2.120.0040.00426.35
8.2.110.0030.00620.32
8.2.100.0070.00317.78
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0030.00617.75
8.2.60.0000.00817.80
8.2.50.0040.00418.09
8.2.40.0040.00422.27
8.2.30.0040.00419.25
8.2.20.0000.00817.82
8.2.10.0050.00218.17
8.2.00.0050.00318.12
8.1.270.0000.00822.21
8.1.260.0040.00428.09
8.1.250.0050.00328.09
8.1.240.0030.00623.90
8.1.230.0030.00924.01
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.22
8.1.190.0040.00417.48
8.1.180.0000.00818.10
8.1.170.0030.00518.57
8.1.160.0070.00020.63
8.1.150.0040.00419.07
8.1.140.0040.00419.57
8.1.130.0030.00517.63
8.1.120.0030.00417.42
8.1.110.0030.00317.34
8.1.100.0080.00017.46
8.1.90.0030.00417.47
8.1.80.0070.00017.34
8.1.70.0030.00317.38
8.1.60.0000.00817.45
8.1.50.0040.00417.55
8.1.40.0060.00617.57
8.1.30.0030.00617.63
8.1.20.0000.00717.61
8.1.10.0000.00717.57
8.1.00.0040.00417.50
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0000.00718.30
8.0.270.0000.00717.19
8.0.260.0000.00717.22
8.0.250.0060.00016.94
8.0.240.0000.00816.99
8.0.230.0030.00316.84
8.0.220.0000.00716.93
8.0.210.0070.00016.77
8.0.200.0060.00016.88
8.0.190.0030.00516.92
8.0.180.0040.00416.92
8.0.170.0040.00416.84
8.0.160.0000.00716.82
8.0.150.0000.00816.75
8.0.140.0070.00016.81
8.0.130.0000.00513.38
8.0.120.0040.00416.82
8.0.110.0070.00016.87
8.0.100.0000.00816.77
8.0.90.0000.00716.82
8.0.80.0030.01216.82
8.0.70.0040.00417.01
8.0.60.0000.00716.82
8.0.50.0040.00416.98
8.0.30.0040.01717.07
8.0.20.0150.01017.40
8.0.10.0070.00017.11
8.0.00.0090.00816.71
7.4.330.0020.00216.66
7.4.320.0060.00016.56
7.4.300.0040.00416.55
7.4.290.0030.00716.47
7.4.280.0030.00516.55
7.4.270.0030.00316.58
7.4.260.0000.00716.38
7.4.250.0050.00216.57
7.4.240.0000.00716.59
7.4.230.0000.00816.61
7.4.220.0120.00616.65
7.4.210.0080.00916.58
7.4.200.0000.00716.67
7.4.160.0090.00616.36
7.4.150.0060.01217.40
7.4.140.0130.00617.86
7.4.130.0070.01016.55
7.4.120.0070.01316.54
7.4.110.0090.00916.57
7.4.100.0090.01216.63
7.4.90.0110.01116.52
7.4.80.0130.00919.39
7.4.70.0100.01016.56
7.4.60.0080.00816.46
7.4.50.0060.00916.65
7.4.40.0060.01016.61
7.4.30.0120.00916.32
7.4.00.0070.00715.16
7.3.330.0030.00313.43
7.3.320.0050.00013.22
7.3.310.0050.00216.17
7.3.300.0030.00616.40
7.3.290.0070.00016.37
7.3.280.0090.00816.35
7.3.270.0160.00317.40
7.3.260.0110.00516.71
7.3.250.0120.00716.42
7.3.240.0120.00616.43
7.3.230.0100.00716.51
7.3.210.0110.00616.51
7.3.200.0120.01419.39
7.3.190.0060.00916.43
7.3.180.0140.00316.50
7.3.170.0100.00716.42
7.3.160.0060.01016.41
7.2.330.0100.00716.67
7.2.320.0110.01316.68
7.2.310.0100.00716.59
7.2.300.0100.01316.43
7.2.290.0120.01016.54
7.2.60.0120.00316.73
7.2.00.0030.00919.41
7.1.200.0030.01015.70
7.1.100.0040.00717.95
7.1.70.0040.00416.86
7.1.60.0160.01019.40
7.1.50.0090.00916.84
7.1.00.0130.06722.54
7.0.200.0330.01014.93
7.0.60.0070.09321.72
7.0.50.0100.03317.90
7.0.40.0170.08020.20
7.0.30.0270.08720.30
7.0.20.0270.03720.27
7.0.10.0070.09020.24
7.0.00.0130.08020.19
5.6.280.0030.03021.09
5.6.210.0100.08020.66
5.6.200.0130.07318.26
5.6.190.0000.08320.64
5.6.180.0230.07720.61
5.6.170.0230.03720.55
5.6.160.0100.07020.52
5.6.150.0070.08018.18
5.6.140.0030.07318.26
5.6.130.0100.04718.15
5.6.120.0070.04021.13
5.6.110.0170.07320.98
5.6.100.0070.05021.13
5.6.90.0070.04720.88
5.6.80.0100.08020.51
5.5.350.0130.07020.38
5.5.340.0000.04317.94
5.5.330.0200.07020.23
5.5.320.0500.04020.18
5.5.310.0300.03720.34
5.5.300.0070.07317.95
5.5.290.0030.04317.94
5.5.280.0100.05320.87
5.5.270.0070.07020.88
5.5.260.0200.06020.95
5.5.250.0030.07020.57
5.5.240.0200.07320.16

preferences:
62.98 ms | 400 KiB | 5 Q