3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! //error_reporting(E_ALL); class Aa { public function __construct($x) { } public function x($a) { $a = $b; } } class Bb extends Aa { public function __construct($x, $y) { } public function x($a, $b) { return parent::x($a); } } $b = new Bb(); $b->x(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.0110.01116.75
8.3.60.0000.01516.63
8.3.50.0080.00921.93
8.3.40.0120.00318.77
8.3.30.0100.00318.95
8.3.20.0030.00520.13
8.3.10.0040.00423.61
8.3.00.0030.00619.26
8.2.180.0110.00718.06
8.2.170.0030.01122.96
8.2.160.0110.00320.44
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00726.16
8.2.120.0070.00022.32
8.2.110.0030.00622.20
8.2.100.0080.00317.72
8.2.90.0000.00718.95
8.2.80.0040.00417.97
8.2.70.0080.00017.38
8.2.60.0000.00817.80
8.2.50.0030.00518.07
8.2.40.0090.00018.09
8.2.30.0040.00417.88
8.2.20.0050.00217.55
8.2.10.0080.00017.81
8.2.00.0030.00617.62
8.1.280.0060.00825.92
8.1.270.0000.00821.96
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.83
8.1.230.0080.00319.04
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0090.00017.03
8.1.180.0030.00618.10
8.1.170.0030.00518.52
8.1.160.0050.00221.87
8.1.150.0000.00918.59
8.1.140.0040.00417.27
8.1.130.0000.00617.68
8.1.120.0030.00517.27
8.1.110.0060.00317.36
8.1.100.0040.00417.31
8.1.90.0040.00417.24
8.1.80.0040.00417.35
8.1.70.0000.00717.31
8.1.60.0040.00417.39
8.1.50.0040.00417.36
8.1.40.0030.00617.42
8.1.30.0040.00417.43
8.1.20.0060.00317.48
8.1.10.0000.00717.30
8.1.00.0070.00017.27
8.0.300.0070.00018.77
8.0.290.0000.00716.92
8.0.280.0000.00718.18
8.0.270.0050.00217.23
8.0.260.0000.00617.18
8.0.250.0070.00016.86
8.0.240.0030.00316.78
8.0.230.0000.00716.91
8.0.220.0030.00316.81
8.0.210.0000.00716.73
8.0.200.0050.00316.75
8.0.190.0000.00716.88
8.0.180.0000.00716.75
8.0.170.0040.00416.77
8.0.160.0000.00716.82
8.0.150.0030.00316.81
8.0.140.0050.00216.84
8.0.130.0060.00013.18
8.0.120.0000.00716.66
8.0.110.0040.00416.85
8.0.100.0030.00616.60
8.0.90.0030.00516.88
8.0.80.0120.00316.88
8.0.70.0040.00416.63
8.0.60.0000.00716.69
8.0.50.0000.00816.81
8.0.30.0100.00817.00
8.0.20.0110.00817.40
8.0.10.0050.00216.88
8.0.00.0130.00616.48
7.4.330.0000.00515.03
7.4.320.0070.00016.46
7.4.300.0030.00316.55
7.4.290.0030.00316.38
7.4.280.0030.00316.46
7.4.270.0040.00416.37
7.4.260.0050.00216.52
7.4.250.0070.00016.51
7.4.240.0030.00516.50
7.4.230.0040.00416.36
7.4.220.0070.01416.41
7.4.210.0060.01016.55
7.4.200.0040.00416.53
7.4.190.0030.00316.35
7.4.160.0090.00616.44
7.4.150.0040.01417.40
7.4.140.0110.00817.86
7.4.130.0110.00716.41
7.4.120.0100.00716.47
7.4.110.0060.01016.51
7.4.100.0090.00916.51
7.4.90.0140.00516.60
7.4.80.0150.00719.39
7.4.70.0040.01216.60
7.4.60.0070.01016.37
7.4.50.0040.00416.34
7.4.40.0070.01122.77
7.4.30.0100.00616.43
7.4.00.0090.00615.14
7.3.330.0000.00513.23
7.3.320.0000.00513.43
7.3.310.0000.00816.39
7.3.300.0000.00716.38
7.3.290.0070.00716.41
7.3.280.0120.00416.36
7.3.270.0110.00517.40
7.3.260.0070.01016.63
7.3.250.0100.01116.32
7.3.240.0140.00316.56
7.3.230.0140.00016.39
7.3.210.0100.00716.51
7.3.200.0060.01319.39
7.3.190.0090.00916.34
7.3.180.0160.00316.30
7.3.170.0030.01316.35
7.3.160.0090.00616.43
7.3.120.0060.00914.96
7.3.10.0120.00916.09
7.3.00.0210.00716.55
7.2.330.0060.01316.63
7.2.320.0070.01016.67
7.2.310.0090.01716.30
7.2.300.0060.00916.57
7.2.290.0080.00816.39
7.2.130.0140.01016.55
7.2.120.0180.00016.30
7.2.110.0110.01116.38
7.2.100.0150.00316.04
7.2.90.0080.00616.54
7.2.80.0160.00316.45
7.2.70.0070.01016.61
7.2.60.0090.00716.14
7.2.50.0190.00616.30
7.2.40.0090.00616.48
7.2.30.0090.00916.67
7.2.20.0130.01316.61
7.2.10.0100.00716.46
7.2.00.0110.00917.78
7.1.250.0070.01015.56
7.1.200.0030.01015.60
7.1.100.0000.01217.83
7.1.70.0000.00716.89
7.1.60.0070.01719.33
7.1.50.0040.01216.86
7.1.00.0000.08022.57
7.0.200.0320.00614.66
7.0.140.0030.06722.07
7.0.90.0570.04019.98
7.0.80.0470.08319.91
7.0.70.0530.08320.02
7.0.60.0600.07719.88
7.0.50.0430.05320.31
7.0.40.0070.08320.07
7.0.30.0100.04320.14
7.0.20.0200.06720.14
7.0.10.0170.06720.10
7.0.00.0100.07720.04
5.6.280.0000.07321.03
5.6.230.0100.07720.65
5.6.220.0070.04020.71
5.6.210.0100.07320.47
5.6.200.0030.08021.07
5.6.190.0000.09020.96
5.6.180.0130.07021.03
5.6.170.0100.04321.02
5.6.160.0070.08021.03
5.6.150.0000.05720.89
5.6.140.0130.03721.05
5.6.130.0030.04721.08
5.6.120.0070.08020.96
5.6.110.0000.07321.09
5.6.100.0130.08021.13
5.6.90.0030.06021.02
5.6.80.0070.07720.31
5.6.70.0130.07320.44
5.6.60.0070.04720.46
5.6.50.0130.07320.35
5.6.40.0070.04720.44
5.6.30.0130.07720.38
5.6.20.0070.08020.49
5.6.10.0030.06020.49
5.6.00.0030.07020.45
5.5.370.0000.07320.38
5.5.360.0070.07720.34
5.5.350.0100.07720.44
5.5.340.0100.04320.92
5.5.330.0070.04020.74
5.5.320.0130.07320.87
5.5.310.0000.09320.87
5.5.300.0100.07720.88
5.5.290.0130.07320.93
5.5.280.0070.05720.78
5.5.270.0070.07720.91
5.5.260.0070.08020.77
5.5.250.0000.08320.62
5.5.240.0070.07720.26
5.5.230.0030.07020.25
5.5.220.0130.04020.26
5.5.210.0170.07020.30
5.5.200.0000.07320.12
5.5.190.0170.06320.27
5.5.180.0170.06720.18
5.5.160.0130.08020.28
5.5.150.0100.07320.14
5.5.140.0070.04720.18
5.5.130.0100.07320.13
5.5.120.0030.04720.14
5.5.110.0130.07720.22
5.5.100.0100.05720.03
5.5.90.0100.03720.10
5.5.80.0100.07720.16
5.5.70.0030.08020.07
5.5.60.0230.05720.12
5.5.50.0070.04020.15
5.5.40.0000.04320.07
5.5.30.0100.07320.15
5.5.20.0200.06020.06
5.5.10.0070.05020.03
5.5.00.0030.07020.05
5.4.450.0030.05319.45
5.4.440.0100.07719.45
5.4.430.0000.07019.45
5.4.420.0070.06719.22
5.4.410.0130.04019.32
5.4.400.0030.05319.05
5.4.390.0000.05319.12
5.4.380.0100.07719.12
5.4.370.0030.06719.23
5.4.360.0170.04719.16
5.4.350.0070.06719.18
5.4.340.0070.07019.05
5.4.320.0130.07019.20
5.4.310.0070.05718.91
5.4.300.0070.07719.16
5.4.290.0130.07019.12
5.4.280.0100.04719.16
5.4.270.0000.04319.22
5.4.260.0100.06718.93
5.4.250.0030.04718.92
5.4.240.0070.07019.22
5.4.230.0100.07019.12
5.4.220.0130.06719.02
5.4.210.0130.06319.03
5.4.200.0030.04319.09
5.4.190.0070.06319.17
5.4.180.0070.07019.12
5.4.170.0070.04018.93
5.4.160.0070.03719.18
5.4.150.0070.06318.88
5.4.140.0070.04316.48
5.4.130.0070.04016.46
5.4.120.0130.03316.46
5.4.110.0030.08316.56
5.4.100.0070.06716.56
5.4.90.0030.07316.57
5.4.80.0000.08316.51
5.4.70.0070.05016.43
5.4.60.0030.04316.30
5.4.50.0130.06316.36
5.4.40.0030.04716.50
5.4.30.0100.04316.36
5.4.20.0200.05716.30
5.4.10.0100.04016.38
5.4.00.0100.04015.90
5.3.290.0070.06314.69
5.3.280.0130.07014.52
5.3.270.0100.05314.64
5.3.260.0000.04314.66
5.3.250.0230.05714.54
5.3.240.0070.06314.60
5.3.230.0000.07714.66
5.3.220.0000.04714.63
5.3.210.0000.08014.65
5.3.200.0070.05314.50
5.3.190.0070.07314.69
5.3.180.0030.07314.50
5.3.170.0000.07314.55
5.3.160.0030.04314.53
5.3.150.0030.07314.57
5.3.140.0170.03714.64
5.3.130.0030.06314.52
5.3.120.0170.06714.64
5.3.110.0070.07714.48
5.3.100.0170.07014.07
5.3.90.0100.04013.97
5.3.80.0030.07314.14
5.3.70.0100.04014.12
5.3.60.0030.04714.12
5.3.50.0070.07013.88
5.3.40.0070.05714.10
5.3.30.0030.07714.00
5.3.20.0070.04013.72
5.3.10.0030.04313.72
5.3.00.0070.03313.76
5.2.170.0000.04313.60
5.2.160.0070.06313.60
5.2.150.0030.04313.60
5.2.140.0030.04313.60
5.2.130.0100.02313.60
5.2.120.0000.03013.60
5.2.110.0030.04013.60
5.2.100.0000.04013.60
5.2.90.0070.02713.60
5.2.80.0030.03013.60
5.2.70.0070.02313.60
5.2.60.0030.03013.60
5.2.50.0000.03313.60
5.2.40.0070.04713.60
5.2.30.0000.03313.60
5.2.20.0030.02713.60
5.2.10.0000.03013.60
5.2.00.0000.03313.60
5.1.60.0070.02013.60
5.1.50.0000.03713.60
5.1.40.0000.02713.60
5.1.30.0000.02713.60
5.1.20.0000.02713.60
5.1.10.0000.02713.60
5.1.00.0000.03013.60
5.0.50.0030.02013.60
5.0.40.0030.02013.60
5.0.30.0070.04013.60
5.0.20.0030.01713.60
5.0.10.0070.03013.60
5.0.00.0000.03713.60
4.4.90.0030.01313.60
4.4.80.0030.01313.60
4.4.70.0000.01713.60
4.4.60.0000.02013.60
4.4.50.0000.01713.60
4.4.40.0030.03713.60
4.4.30.0000.01313.60
4.4.20.0000.02013.60
4.4.10.0030.01313.60
4.4.00.0030.02313.60
4.3.110.0000.02713.60
4.3.100.0000.01313.60
4.3.90.0000.01713.60
4.3.80.0000.02313.60
4.3.70.0070.01313.60
4.3.60.0000.01313.60
4.3.50.0000.01313.60
4.3.40.0000.03713.60
4.3.30.0000.01713.60
4.3.20.0030.01313.60
4.3.10.0000.01313.60
4.3.00.0070.01013.60

preferences:
48.27 ms | 401 KiB | 5 Q