3v4l.org

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

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.0040.01118.30
8.3.60.0100.00718.30
8.3.50.0110.00822.05
8.3.40.0070.00718.59
8.3.30.0100.00320.17
8.3.20.0080.00018.70
8.3.10.0000.00820.96
8.3.00.0040.00419.68
8.2.180.0100.01016.38
8.2.170.0100.00722.96
8.2.160.0110.00420.35
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00421.04
8.2.110.0060.00320.48
8.2.100.0060.00617.66
8.2.90.0070.00019.23
8.2.80.0040.00419.40
8.2.70.0040.00817.50
8.2.60.0050.00317.80
8.2.50.0030.00618.07
8.2.40.0030.00518.07
8.2.30.0090.00019.48
8.2.20.0080.00017.49
8.2.10.0080.00017.54
8.2.00.0000.00717.56
8.1.280.0120.00325.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.00322.33
8.1.230.0090.00320.98
8.1.220.0040.00418.77
8.1.210.0050.00318.89
8.1.200.0030.00717.23
8.1.190.0060.00317.41
8.1.180.0000.00718.10
8.1.170.0030.00618.47
8.1.160.0070.00018.81
8.1.150.0040.00418.60
8.1.140.0030.00617.35
8.1.130.0070.00017.74
8.1.120.0000.00717.35
8.1.110.0040.00417.34
8.1.100.0000.00717.27
8.1.90.0020.00517.39
8.1.80.0050.00217.30
8.1.70.0070.00017.35
8.1.60.0030.00617.59
8.1.50.0050.00317.49
8.1.40.0040.00417.40
8.1.30.0000.00817.55
8.1.20.0000.00817.63
8.1.10.0000.00817.38
8.1.00.0050.00217.33
8.0.300.0040.00419.91
8.0.290.0070.00016.93
8.0.280.0030.00318.42
8.0.270.0000.00717.10
8.0.260.0060.00016.70
8.0.250.0040.00416.78
8.0.240.0030.00616.89
8.0.230.0030.00316.86
8.0.220.0050.00216.79
8.0.210.0030.00316.79
8.0.200.0040.00416.81
8.0.190.0000.00716.75
8.0.180.0040.00416.91
8.0.170.0050.00316.60
8.0.160.0030.00516.79
8.0.150.0070.00016.76
8.0.140.0030.00316.79
8.0.130.0000.00613.21
8.0.120.0080.00016.72
8.0.110.0070.00016.68
8.0.100.0000.00716.68
8.0.90.0000.00716.82
8.0.80.0070.01516.84
8.0.70.0000.00716.65
8.0.60.0040.00416.72
8.0.50.0040.00416.93
8.0.30.0120.00716.92
8.0.20.0110.01017.40
8.0.10.0050.00316.78
8.0.00.0090.01016.81
7.4.330.0050.00016.67
7.4.320.0030.00316.44
7.4.300.0030.00316.49
7.4.290.0000.00716.56
7.4.280.0040.00416.50
7.4.270.0000.00616.61
7.4.260.0080.00013.30
7.4.250.0070.00016.45
7.4.240.0070.00016.54
7.4.230.0040.00416.38
7.4.220.0100.00616.48
7.4.210.0100.00816.48
7.4.200.0060.00316.25
7.4.190.0080.00016.61
7.4.160.0100.01316.52
7.4.150.0080.00817.40
7.4.140.0090.00817.86
7.4.130.0110.00616.39
7.4.120.0070.01016.39
7.4.110.0090.01216.45
7.4.100.0110.00516.40
7.4.90.0120.00616.52
7.4.80.0090.01319.39
7.4.70.0120.00416.51
7.4.60.0130.01016.52
7.4.50.0050.00316.10
7.4.40.0030.02022.77
7.4.30.0060.00916.71
7.4.00.0040.01214.81
7.3.330.0030.00313.18
7.3.320.0050.00013.04
7.3.310.0030.00316.25
7.3.300.0030.00316.25
7.3.290.0040.01116.21
7.3.280.0070.01016.20
7.3.270.0120.00617.40
7.3.260.0060.01218.24
7.3.250.0120.00716.35
7.3.240.0070.01016.52
7.3.230.0090.00916.39
7.3.210.0110.00716.19
7.3.200.0100.01319.39
7.3.190.0170.00016.25
7.3.180.0080.00816.48
7.3.170.0060.00916.54
7.3.160.0160.00316.22
7.3.120.0040.01114.72
7.2.330.0090.00916.62
7.2.320.0100.00716.63
7.2.310.0120.00916.63
7.2.300.0130.00316.23
7.2.290.0070.01316.41
7.2.00.0070.00719.26
7.1.100.0080.00318.15
7.1.70.0030.00316.89
7.1.60.0030.01617.16
7.1.50.0000.01116.93
7.1.40.0030.00916.46
7.1.30.0000.01216.64
7.1.20.0030.01016.76
7.1.10.0050.00516.48
7.1.00.0020.00516.62
7.0.200.0000.01516.66
7.0.190.0030.00716.61
7.0.180.0000.00816.00
7.0.170.0040.00416.16
7.0.160.0060.00316.00
7.0.150.0000.00816.23
7.0.140.0000.00916.15
7.0.130.0000.00916.59
7.0.120.0080.00316.39
7.0.110.0030.00516.40
7.0.100.0060.00316.14
7.0.90.0000.00816.36
7.0.80.0000.00916.45
7.0.70.0000.00816.29
7.0.60.0000.00916.09
7.0.50.0000.00716.25
7.0.40.0040.00415.24
7.0.30.0050.00215.24
7.0.20.0040.00715.24
7.0.10.0050.00315.24
7.0.00.0050.00315.24
5.6.300.0070.04420.68
5.6.290.0000.04220.79
5.6.280.0000.04720.82
5.6.270.0000.04520.89
5.6.260.0230.04620.91
5.6.250.0040.03921.03
5.6.240.0060.03920.90
5.6.230.0070.04020.86
5.6.220.0100.04820.82
5.6.210.0030.04521.07
5.6.200.0070.04920.84
5.6.190.0070.04120.73
5.6.180.0100.03621.04
5.6.170.0000.04820.87
5.6.160.0070.05121.02
5.6.150.0000.05021.02
5.6.140.0000.04820.92
5.6.130.0030.04221.04
5.6.120.0000.04821.00
5.6.110.0130.03321.02
5.6.100.0030.04021.01
5.6.90.0030.04320.84
5.6.80.0070.03720.11
5.6.70.0060.03920.10
5.6.60.0000.04720.41
5.6.50.0130.03220.35
5.6.40.0030.04320.20
5.6.30.0030.05620.13
5.6.20.0070.03720.18
5.6.10.0140.03420.18
5.6.00.0070.03720.15
5.5.380.0000.04717.64
5.5.370.0030.04017.54
5.5.360.0060.03817.53
5.5.350.0000.05017.53
5.5.340.0030.04217.75
5.5.330.0100.04017.98
5.5.320.0030.04218.09
5.5.310.0070.03918.17
5.5.300.0000.04818.13
5.5.290.0000.04718.18
5.5.280.0000.04618.14
5.5.270.0070.03918.12
5.5.260.0030.04917.70
5.5.250.0030.03817.53
5.5.240.0100.04717.48
5.5.230.0000.05117.46
5.5.220.0030.03917.40
5.5.210.0000.04517.12
5.5.200.0100.03317.47
5.5.190.0130.04617.18
5.5.180.0160.03217.18
5.5.160.0030.03717.45
5.5.150.0000.03917.38
5.5.140.0000.04117.44
5.5.130.0000.04117.47
5.5.120.0030.03817.10
5.5.110.0000.04117.36
5.5.100.0030.03917.36
5.5.90.0060.03717.11
5.5.80.0000.03917.24
5.5.70.0030.06517.28
5.5.60.0030.04017.38
5.5.50.0030.04117.24
5.5.40.0000.04717.27
5.5.30.0000.04317.32
5.5.20.0070.04017.36
5.5.10.0040.04217.37
5.5.00.0000.04617.26
5.4.450.0090.04119.42
5.4.440.0000.04419.53
5.4.430.0070.04419.44
5.4.420.0030.04219.52
5.4.410.0030.04119.40
5.4.400.0060.06118.90
5.4.390.0030.04318.95
5.4.380.0030.03818.99
5.4.370.0070.03318.98
5.4.360.0070.03719.11
5.4.350.0070.03419.13
5.4.340.0030.04118.98
5.4.320.0070.04019.13
5.4.310.0030.03619.12
5.4.300.0030.07519.23
5.4.290.0000.04718.99
5.4.280.0030.03919.05
5.4.270.0030.03819.20
5.4.260.0070.03619.08
5.4.250.0030.04019.20
5.4.240.0100.05019.07
5.4.230.0000.05219.23
5.4.220.0070.04118.98
5.4.210.0030.04419.10
5.4.200.0000.04618.97
5.4.190.0000.04119.06
5.4.180.0030.04119.06
5.4.170.0070.03618.98
5.4.160.0030.04018.97
5.4.150.0030.03719.01
5.4.140.0000.04216.76
5.4.130.0030.04316.51
5.4.120.0060.03216.50
5.4.110.0230.03616.80
5.4.100.0000.03916.75
5.4.90.0070.03316.76
5.4.80.0090.03116.78
5.4.70.0030.04116.74
5.4.60.0030.03716.68
5.4.50.0070.03616.68
5.4.40.0000.04216.51
5.4.30.0000.03816.45
5.4.20.0070.03716.45
5.4.10.0030.04016.73
5.4.00.0000.03616.13
5.3.290.0000.04315.24
5.3.280.0140.04115.24
5.3.270.0070.04015.24
5.3.260.0030.04015.24
5.3.250.0000.03715.24
5.3.240.0060.04515.24
5.3.230.0170.03015.24
5.3.220.0070.03315.24
5.3.210.0070.03615.24
5.3.200.0000.04015.24
5.3.190.0070.04015.24
5.3.180.0000.03915.24
5.3.170.0040.03915.24
5.3.160.0160.04315.24
5.3.150.0090.03215.24
5.3.140.0070.03415.24
5.3.130.0000.05015.24
5.3.120.0030.03715.24
5.3.110.0170.03015.24
5.3.100.0030.03515.24
5.3.90.0000.04215.24
5.3.80.0100.03515.24
5.3.70.0030.03615.24
5.3.60.0000.04015.24
5.3.50.0070.03215.24
5.3.40.0000.04315.24
5.3.30.0030.04615.24
5.3.20.0000.03815.24
5.3.10.0040.03315.24
5.3.00.0030.04215.24
5.2.170.0030.03015.24
5.2.160.0000.03015.24
5.2.150.0030.03615.24
5.2.140.0030.03815.24
5.2.130.0030.02915.24
5.2.120.0030.03015.24
5.2.110.0030.02615.24
5.2.100.0000.03115.24
5.2.90.0000.03415.24
5.2.80.0000.03415.24
5.2.70.0070.03015.24
5.2.60.0000.03615.24
5.2.50.0000.03515.24
5.2.40.0070.03015.24
5.2.30.0000.03415.24
5.2.20.0030.02615.24
5.2.10.0000.03315.24
5.2.00.0160.02615.24
5.1.60.0000.03315.24
5.1.50.0000.03115.24
5.1.40.0090.02215.24
5.1.30.0030.02715.24
5.1.20.0030.03115.24
5.1.10.0060.02215.24
5.1.00.0100.03615.24
5.0.50.0100.02315.24
5.0.40.0000.02415.24
5.0.30.0060.02815.24
5.0.20.0000.02015.24
5.0.10.0030.01815.24
5.0.00.0240.02415.24
4.4.90.0030.01715.24
4.4.80.0030.01515.24
4.4.70.0030.01415.24
4.4.60.0030.01615.24
4.4.50.0000.01615.24
4.4.40.0000.02515.24
4.4.30.0000.01615.24
4.4.20.0060.01215.24
4.4.10.0090.01215.24
4.4.00.0000.02815.24
4.3.110.0000.01715.24
4.3.100.0000.01715.24
4.3.90.0060.01215.24
4.3.80.0000.02615.24
4.3.70.0030.01215.24
4.3.60.0140.00715.24
4.3.50.0040.01415.24
4.3.40.0030.02715.24
4.3.30.0030.01315.24
4.3.20.0000.02115.24
4.3.10.0000.01815.24
4.3.00.0000.02015.24

preferences:
61.8 ms | 401 KiB | 5 Q