3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct() {} } class B { public function __construct() { die("what?"); } } $a = new A((die(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.70.0130.00316.58
8.3.60.0040.01418.43
8.3.50.0110.00921.09
8.3.40.0170.00318.79
8.3.30.0100.00718.66
8.3.20.0070.00718.48
8.3.10.0030.00521.01
8.3.00.0080.00023.65
8.2.180.0040.01116.38
8.2.170.0070.00722.96
8.2.160.0040.00920.45
8.2.150.0070.00024.18
8.2.140.0180.00024.66
8.2.130.0030.00626.16
8.2.120.0050.00319.51
8.2.110.0050.00522.06
8.2.100.0040.00817.78
8.2.90.0040.00419.09
8.2.80.0090.00017.97
8.2.70.0050.00317.38
8.2.60.0040.00417.80
8.2.50.0000.00918.07
8.2.40.0000.00818.09
8.2.30.0030.00519.54
8.2.20.0060.00317.64
8.2.10.0050.00217.55
8.2.00.0040.00417.57
8.1.280.0100.00725.92
8.1.270.0040.00723.99
8.1.260.0050.00326.35
8.1.250.0050.00528.09
8.1.240.0130.01022.45
8.1.230.0040.00720.96
8.1.220.0040.00418.77
8.1.210.0060.00318.80
8.1.200.0030.00617.23
8.1.190.0000.00917.51
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0070.00018.78
8.1.150.0000.00718.38
8.1.140.0040.00417.29
8.1.130.0000.00717.76
8.1.120.0080.00017.18
8.1.110.0070.00417.34
8.1.100.0040.00417.32
8.1.90.0050.00217.23
8.1.80.0000.00717.39
8.1.70.0070.00017.36
8.1.60.0030.00517.54
8.1.50.0000.00717.44
8.1.40.0030.00517.43
8.1.30.0000.00817.59
8.1.20.0020.00517.55
8.1.10.0030.00617.41
8.1.00.0070.00317.32
8.0.300.0040.00419.89
8.0.290.0000.00716.80
8.0.280.0070.00018.32
8.0.270.0070.00017.11
8.0.260.0030.00516.72
8.0.250.0000.00816.91
8.0.240.0000.00716.82
8.0.230.0000.00716.75
8.0.220.0000.00716.83
8.0.210.0070.00016.80
8.0.200.0060.00016.91
8.0.190.0030.00616.90
8.0.180.0040.00416.77
8.0.170.0000.00716.91
8.0.160.0040.00316.72
8.0.150.0040.00416.63
8.0.140.0040.00416.77
8.0.130.0000.00713.27
8.0.120.0040.00416.84
8.0.110.0070.00016.85
8.0.100.0040.00416.68
8.0.90.0070.00016.80
8.0.80.0070.00716.80
8.0.70.0040.00416.71
8.0.60.0040.00416.80
8.0.50.0000.00716.71
8.0.30.0130.00617.20
8.0.20.0110.00717.40
8.0.10.0030.00516.99
8.0.00.0130.01116.68
7.4.330.0050.00014.66
7.4.320.0030.00316.48
7.4.300.0060.00016.42
7.4.290.0040.00416.53
7.4.280.0030.00316.45
7.4.270.0040.00416.55
7.4.260.0000.00513.18
7.4.250.0070.00016.41
7.4.240.0030.00316.45
7.4.230.0070.00016.46
7.4.220.0040.01516.40
7.4.210.0100.00616.47
7.4.200.0030.00316.55
7.4.190.0000.00716.61
7.4.160.0000.01616.52
7.4.150.0100.00717.40
7.4.140.0140.00917.86
7.4.130.0100.00816.37
7.4.120.0130.00316.65
7.4.110.0030.01316.50
7.4.100.0100.00616.58
7.4.90.0060.01216.55
7.4.80.0070.01019.39
7.4.70.0030.01316.18
7.4.60.0100.00916.36
7.4.50.0030.00516.47
7.4.40.0110.00022.52
7.4.30.0140.00716.14
7.4.00.0000.01714.85
7.3.330.0050.00013.17
7.3.320.0030.00313.30
7.3.310.0030.00316.47
7.3.300.0000.00616.14
7.3.290.0080.00516.30
7.3.280.0070.01016.34
7.3.270.0030.01317.40
7.3.260.0120.00818.24
7.3.250.0060.01116.28
7.3.240.0070.00916.39
7.3.230.0130.00316.39
7.3.210.0060.01316.42
7.3.200.0110.01119.39
7.3.190.0060.01316.34
7.3.180.0160.00016.19
7.3.170.0060.01016.27
7.3.160.0090.00616.29
7.3.120.0090.00314.75
7.2.330.0030.01516.24
7.2.320.0170.00016.31
7.2.310.0150.00816.41
7.2.300.0060.00916.26
7.2.290.0060.01116.53
7.2.60.0100.00316.65
7.2.00.0100.01019.36
7.1.200.0070.00715.73
7.1.100.0030.00918.05
7.1.70.0000.00716.88
7.1.60.0040.01119.40
7.1.50.0140.01016.60
7.1.00.0000.07022.48
7.0.200.0000.00916.51
7.0.140.0030.07322.15
7.0.60.0300.05719.94
7.0.50.0330.06020.36
7.0.40.0370.06720.23
7.0.30.0400.06020.47
7.0.20.0300.05320.41
7.0.10.0400.05320.30
7.0.00.0500.05320.34
5.6.280.0000.07720.89
5.6.210.0100.05320.63
5.6.200.0030.06320.95
5.6.190.0170.05020.88
5.6.180.0170.05020.87
5.6.170.0130.05321.22
5.6.160.0070.06021.20
5.6.150.0070.05721.14
5.6.140.0070.06321.08
5.6.130.0100.06021.08
5.6.120.0200.05320.96
5.6.110.0230.05021.20
5.6.100.0130.05721.18
5.6.90.0200.07021.17
5.6.80.0100.05320.33
5.6.70.0200.05720.61
5.6.60.0100.05720.23
5.6.50.0070.05720.41
5.6.40.0070.06720.30
5.6.30.0170.04720.36
5.6.20.0030.06020.41
5.6.10.0100.05320.58
5.6.00.0100.06020.30
5.5.350.0100.06320.41
5.5.340.0030.06720.97
5.5.330.0100.05720.91
5.5.320.0200.08020.98
5.5.310.0230.07320.75
5.5.300.0130.05720.74
5.5.290.0100.06320.80
5.5.280.0130.06020.95
5.5.270.0100.06320.85
5.5.260.0200.05721.00
5.5.250.0070.06320.79
5.5.240.0130.07020.23
5.5.230.0170.07320.10
5.5.220.0170.07720.21
5.5.210.0170.06720.25
5.5.200.0130.05720.25
5.5.190.0070.09720.32
5.5.180.0200.07720.34
5.5.160.0230.06320.25
5.5.150.0230.05020.04
5.5.140.0170.07320.09
5.5.130.0170.07320.13
5.5.120.0270.05020.23
5.5.110.0170.08020.12
5.5.100.0230.07320.15
5.5.90.0070.06720.20
5.5.80.0300.05320.23
5.5.70.0130.06320.13
5.5.60.0070.06720.08
5.5.50.0170.05320.25
5.5.40.0200.06320.20
5.5.30.0200.07320.06
5.5.20.0070.06720.13
5.5.00.0130.05720.07
5.4.450.0100.06019.31
5.4.440.0230.06319.41
5.4.430.0070.07319.54
5.4.420.0100.06019.56
5.4.410.0030.07319.34
5.4.400.0100.06018.95
5.4.390.0100.07319.16
5.4.380.0130.05019.20
5.4.370.0070.05319.24
5.4.360.0070.08318.95
5.4.350.0100.08019.00
5.4.340.0030.06319.25
5.4.320.0130.05318.95
5.4.310.0070.05719.00
5.4.300.0170.07719.00
5.4.290.0230.05719.02
5.4.280.0100.06018.94
5.4.270.0130.06019.00
5.4.260.0100.05718.99
5.4.250.0270.05319.17
5.4.240.0130.05319.02
5.4.230.0200.04719.21
5.4.220.0130.07719.23
5.4.210.0200.07319.13
5.4.200.0070.06719.00
5.4.190.0100.06019.00
5.4.180.0130.07019.02
5.4.170.0170.04719.08
5.4.160.0170.07019.06
5.4.150.0100.08319.25
5.4.140.0070.06016.40
5.4.130.0100.06016.38
5.4.120.0030.05716.50
5.4.90.0030.05316.59
5.4.80.0200.05016.35
5.4.70.0230.05716.63
5.4.60.0130.06716.23
5.4.50.0130.04716.53
5.4.40.0100.07316.68
5.4.30.0030.05716.47
5.4.20.0030.06716.62
5.4.10.0030.06016.47
5.4.00.0200.06015.91
5.3.290.0070.05714.74
5.3.280.0100.07714.68
5.3.270.0130.05714.68
5.3.260.0170.07314.61
5.3.250.0000.06314.68
5.3.240.0170.04314.60
5.3.230.0070.08014.59
5.3.220.0100.07314.52
5.3.190.0130.04714.64
5.3.180.0130.04714.73
5.3.170.0130.07014.55
5.3.160.0130.07314.57
5.3.150.0100.05014.57
5.3.140.0070.05314.41
5.3.130.0070.05714.56
5.3.120.0170.05014.63
5.3.110.0130.05314.53
5.3.100.0130.04714.04
5.3.90.0130.05714.01
5.3.80.0170.05314.19
5.3.70.0130.06714.11
5.3.60.0130.05314.09
5.3.50.0270.05714.11
5.3.40.0170.05713.94
5.3.30.0100.04313.98
5.3.20.0030.05713.65
5.3.10.0130.06313.65
5.3.00.0030.06013.62
5.2.170.0170.04711.16
5.2.160.0100.04011.22
5.2.150.0130.04011.13
5.2.140.0100.04011.20
5.2.130.0070.04011.11
5.2.120.0070.05311.09
5.2.110.0100.04311.18
5.2.100.0070.04011.10
5.2.90.0100.04311.14
5.2.80.0070.04311.16
5.2.70.0070.06711.12
5.2.60.0200.05011.03
5.2.50.0070.04711.10
5.2.40.0030.05711.08
5.2.30.0100.06010.99
5.2.20.0070.05311.04
5.2.10.0100.04010.95
5.1.50.0100.0339.96
5.1.40.0030.0409.95
5.1.30.0130.04710.50
5.1.20.0100.04010.36
5.1.10.0170.0379.89
5.1.00.0000.05710.15
5.0.50.0100.0278.52
5.0.40.0100.0238.48
5.0.30.0100.0478.20
5.0.20.0030.0408.18
5.0.10.0000.0338.11
5.0.00.0030.0438.24
4.4.90.0100.0278.12
4.4.80.0030.0308.12
4.4.70.0000.0408.12
4.4.60.0000.0378.12
4.4.50.0000.0308.12
4.4.40.0000.0308.12
4.4.30.0000.0338.12
4.4.20.0000.0338.12
4.4.10.0030.0208.12
4.4.00.0000.0578.12
4.3.110.0030.0138.12
4.3.100.0000.0178.12
4.3.90.0030.0138.12
4.3.80.0000.0578.12
4.3.70.0000.0338.12
4.3.60.0070.0308.12
4.3.50.0030.0338.12
4.3.40.0100.0438.12
4.3.30.0000.0238.12
4.3.20.0000.0278.12
4.3.10.0000.0238.12
4.3.00.0000.0238.12

preferences:
58.77 ms | 401 KiB | 5 Q