3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar {} class Foo { public function __construct(Bar $bar = null) {} } $foo = new Foo(null);

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.00616.50
8.3.50.0100.01118.30
8.3.40.0070.00718.52
8.3.30.0080.00618.73
8.3.20.0050.00318.52
8.3.10.0000.01020.45
8.3.00.0080.00019.26
8.2.180.0070.00718.05
8.2.170.0110.00322.96
8.2.160.0160.00320.57
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00020.54
8.2.110.0000.01021.07
8.2.100.0030.01017.91
8.2.90.0030.00719.22
8.2.80.0050.00219.28
8.2.70.0050.00517.50
8.2.60.0060.00317.68
8.2.50.0050.00318.07
8.2.40.0050.00318.09
8.2.30.0100.00017.86
8.2.20.0060.00319.31
8.2.10.0040.00417.61
8.2.00.0030.00617.61
8.1.280.0030.01425.92
8.1.270.0000.00724.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00922.52
8.1.230.0040.00820.67
8.1.220.0060.00317.74
8.1.210.0080.00018.84
8.1.200.0060.00317.22
8.1.190.0040.00417.41
8.1.180.0080.00018.10
8.1.170.0000.00818.74
8.1.160.0000.00818.71
8.1.150.0000.00718.48
8.1.140.0070.00017.36
8.1.130.0030.00317.92
8.1.120.0000.00817.28
8.1.110.0050.00217.39
8.1.100.0040.00417.27
8.1.90.0030.00317.39
8.1.80.0080.00017.26
8.1.70.0000.00717.34
8.1.60.0030.00617.60
8.1.50.0050.00317.34
8.1.40.0000.00817.44
8.1.30.0050.00217.55
8.1.20.0040.00417.61
8.1.10.0050.00317.51
8.1.00.0000.00817.30
8.0.300.0040.00419.98
8.0.290.0040.00416.63
8.0.280.0000.00718.39
8.0.270.0000.00717.19
8.0.260.0040.00416.81
8.0.250.0030.00516.91
8.0.240.0000.00716.87
8.0.230.0040.00416.77
8.0.220.0040.00416.69
8.0.210.0080.00016.82
8.0.200.0000.00616.89
8.0.190.0000.00816.79
8.0.180.0000.00716.68
8.0.170.0030.00616.79
8.0.160.0070.00016.92
8.0.150.0040.00416.87
8.0.140.0000.00816.80
8.0.130.0030.00313.27
8.0.120.0050.00316.71
8.0.110.0050.00216.73
8.0.100.0000.00816.79
8.0.90.0080.00016.81
8.0.80.0110.00416.83
8.0.70.0000.00716.87
8.0.60.0060.00316.66
8.0.50.0040.00416.62
8.0.30.0110.00517.06
8.0.20.0060.01217.12
8.0.10.0050.00216.93
8.0.00.0070.01116.69
7.4.330.0000.00512.92
7.4.320.0000.00616.42
7.4.300.0000.00716.49
7.4.290.0000.00716.43
7.4.280.0030.00316.49
7.4.270.0030.00316.62
7.4.260.0000.00613.30
7.4.250.0060.00316.41
7.4.240.0000.00716.58
7.4.230.0030.00316.60
7.4.220.0140.00416.59
7.4.210.0110.00416.60
7.4.200.0040.00416.40
7.4.190.0040.00416.74
7.4.160.0070.00716.39
7.4.150.0110.00616.53
7.4.140.0090.00916.48
7.4.130.0110.00516.53
7.4.120.0040.01216.50
7.4.110.0100.01316.62
7.4.100.0060.01016.48
7.4.90.0130.01016.27
7.4.80.0090.00919.39
7.4.70.0090.01216.45
7.4.60.0100.00616.34
7.4.50.0000.00916.34
7.4.40.0060.00916.56
7.4.30.0100.00716.45
7.4.00.0090.00914.78
7.3.330.0000.00613.26
7.3.320.0000.00913.18
7.3.310.0070.00016.23
7.3.300.0060.00016.25
7.3.290.0100.00416.23
7.3.280.0050.01016.20
7.3.270.0160.00016.12
7.3.260.0150.00316.23
7.3.250.0100.01016.25
7.3.240.0170.00016.38
7.3.230.0110.00716.24
7.3.210.0120.00916.15
7.3.200.0130.00316.32
7.3.190.0120.00916.32
7.3.180.0110.00616.11
7.3.170.0040.01216.20
7.3.160.0060.00916.30
7.3.120.0060.00614.80
7.2.330.0000.01716.43
7.2.320.0070.01016.45
7.2.310.0170.00316.61
7.2.300.0090.01516.58
7.2.290.0040.01516.56
7.1.70.0000.01016.98
7.1.60.0150.01119.31
7.1.50.0100.01316.78
7.1.00.0000.03722.57
7.0.200.0520.00314.70
7.0.140.0070.06722.07
7.0.120.0070.06321.96
7.0.60.0130.06319.94
7.0.50.0000.04317.84
7.0.40.0030.04720.40
7.0.30.0170.05320.39
7.0.20.0230.07720.30
7.0.10.0130.05320.24
7.0.00.0000.05720.14
5.6.280.0030.07321.04
5.6.210.0230.06720.51
5.6.200.0100.05018.18
5.6.190.0070.05020.33
5.6.180.0230.04320.67
5.6.170.0300.07320.45
5.6.160.0000.04720.52
5.6.150.0200.06718.14
5.6.140.0100.07318.18
5.6.130.0100.05318.17
5.6.120.0130.05321.00
5.6.110.0170.07720.96
5.6.100.0070.04720.98
5.6.90.0100.07021.02
5.6.80.0200.07020.41
5.5.350.0170.04020.41
5.5.340.0230.05717.99
5.5.330.0070.07020.56
5.5.320.0330.07320.24
5.5.310.0230.07320.32
5.5.300.0100.08018.08
5.5.290.0070.08017.98
5.5.280.0100.08020.85
5.5.270.0100.06320.86
5.5.260.0070.07320.84
5.5.250.0030.08320.61
5.5.240.0030.03020.16
5.4.450.1770.04719.17
5.4.440.1770.04719.47
5.4.430.1770.04719.27
5.4.420.1700.04719.27
5.4.410.0170.07319.44
5.4.400.0270.06019.10
5.4.390.0230.07019.31
5.4.380.0270.06719.22
5.4.370.0170.04719.22
5.4.360.0200.04319.22
5.4.350.0170.03319.15
5.4.340.0200.04318.84
5.4.320.0230.07319.33
5.4.310.0100.04019.07
5.4.300.0170.03319.13
5.4.290.0130.04019.05
5.4.280.0270.07018.87
5.4.270.0270.06019.22
5.4.260.0230.06319.14
5.4.250.0270.06319.06
5.4.240.0230.06319.12
5.4.230.0270.04319.22
5.4.220.0200.05319.14
5.4.210.0200.07019.24
5.4.200.0230.06719.19
5.4.190.0200.05319.30
5.4.180.0230.04019.21
5.4.170.0230.05318.82
5.4.160.0270.06318.92
5.4.150.0200.05718.82
5.4.140.0170.04016.55
5.4.130.0170.02716.46
5.4.120.0230.06716.38
5.4.110.0170.03716.59
5.4.100.0200.04016.30
5.4.90.0270.06316.50
5.4.80.0170.04716.39
5.4.70.0230.05316.59
5.4.60.0200.04016.54
5.4.50.0200.04016.56
5.4.40.0270.03716.43
5.4.30.0270.06316.43
5.4.20.0200.07016.52
5.4.10.0130.04016.34
5.4.00.0270.03716.13
5.3.290.0230.04314.65
5.3.280.0170.06014.50
5.3.270.0200.06014.61
5.3.260.0270.06714.71
5.3.250.0270.07014.74
5.3.240.0170.05314.62
5.3.230.0200.07014.60
5.3.220.0200.06714.46
5.3.210.0200.04314.65
5.3.200.0170.04714.48
5.3.190.0300.06314.58
5.3.180.0270.07014.53
5.3.170.0270.06014.61
5.3.160.0070.04014.78
5.3.150.0130.06714.46
5.3.140.0100.04314.70
5.3.130.0200.05014.50
5.3.120.0100.04314.51
5.3.110.0130.04014.46
5.3.100.0130.04014.01
5.3.90.0170.03713.99
5.3.80.0200.07314.10
5.3.70.0230.06313.94
5.3.60.0300.05014.23
5.3.50.0200.03313.95
5.3.40.0170.04313.84
5.3.30.0170.04313.82
5.3.20.0230.08013.75
5.3.10.0270.04313.67
5.3.00.0200.04013.55
5.2.170.0270.05711.06
5.2.160.0170.04011.22
5.2.150.0230.05711.07
5.2.140.0100.03711.04
5.2.130.0130.03011.06
5.2.120.0170.05311.06
5.2.110.0200.03011.02
5.2.100.0200.03711.19
5.2.90.0200.03011.32
5.2.80.0170.06010.95
5.2.70.0130.04711.05
5.2.60.0230.04011.19
5.2.50.0230.05310.94
5.2.40.0230.02311.04
5.2.30.0130.03310.97
5.2.20.0070.03011.05
5.2.10.0130.05310.81
5.2.00.0100.03010.71
5.1.60.0000.0339.87
5.1.50.0130.04310.14
5.1.40.0970.0239.96
5.1.30.1000.04010.42
5.1.20.1170.03310.32
5.1.10.1100.02310.22
5.1.00.1000.0309.99
5.0.50.0430.0208.43
5.0.40.0700.0308.34
5.0.30.0600.0508.20
5.0.20.0470.0178.20
5.0.10.0600.0378.25
5.0.00.0500.0378.20
4.4.90.0600.0108.20
4.4.80.0570.0208.20
4.4.70.0530.0308.20
4.4.60.0530.0238.20
4.4.50.0530.0308.20
4.4.40.0430.0278.20
4.4.30.0470.0138.20
4.4.20.0430.0178.20
4.4.10.0470.0138.20
4.4.00.0470.0238.20
4.3.110.0430.0178.20
4.3.100.0500.0208.20
4.3.90.0430.0178.20
4.3.80.0600.0378.20
4.3.70.0600.0278.20
4.3.60.0500.0138.20
4.3.50.0430.0178.20
4.3.40.0500.0278.20
4.3.30.0200.0178.20
4.3.20.0230.0178.20
4.3.10.0230.0238.20
4.3.00.0270.0278.20

preferences:
55.14 ms | 400 KiB | 5 Q