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 x($a) { $a = $b; } } class BB extends AA { 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.40.0060.00918.54
8.3.30.0130.00618.72
8.3.20.0150.00318.73
8.3.10.0050.00320.54
8.3.00.0000.00819.26
8.2.170.0100.00722.96
8.2.160.0070.01420.43
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0070.01126.16
8.2.120.0040.00419.48
8.2.110.0000.01021.03
8.2.100.0040.00817.59
8.2.90.0030.00519.05
8.2.80.0030.00617.97
8.2.70.0050.00317.50
8.2.60.0060.00317.90
8.2.50.0040.00418.10
8.2.40.0000.00822.15
8.2.30.0000.00917.93
8.2.20.0040.00417.36
8.2.10.0040.00417.44
8.2.00.0040.00417.62
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.80
8.1.230.0070.00420.73
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0040.00717.35
8.1.190.0050.00317.41
8.1.180.0040.00418.10
8.1.170.0100.00518.45
8.1.160.0000.00822.14
8.1.150.0040.00418.50
8.1.140.0040.00817.32
8.1.130.0000.00717.68
8.1.120.0040.00417.36
8.1.110.0050.00217.23
8.1.100.0040.00417.33
8.1.90.0050.00317.35
8.1.80.0040.00417.29
8.1.70.0000.00717.29
8.1.60.0000.00817.30
8.1.50.0030.00517.37
8.1.40.0030.00617.29
8.1.30.0040.00417.50
8.1.20.0000.00817.53
8.1.10.0080.00017.36
8.1.00.0040.00417.19
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.30
8.0.270.0000.00717.05
8.0.260.0070.00016.77
8.0.250.0050.00216.92
8.0.240.0090.00016.80
8.0.230.0000.00816.89
8.0.220.0020.00516.74
8.0.210.0000.00716.79
8.0.200.0030.00316.76
8.0.190.0070.00016.86
8.0.180.0030.00316.84
8.0.170.0000.00916.83
8.0.160.0040.00416.88
8.0.150.0030.00616.84
8.0.140.0070.00016.77
8.0.130.0050.00013.29
8.0.120.0000.00716.75
8.0.110.0070.00016.73
8.0.100.0040.00416.67
8.0.90.0040.00416.88
8.0.80.0090.00616.84
8.0.70.0080.00016.87
8.0.60.0000.00716.71
8.0.50.0020.00516.84
8.0.30.0120.01016.79
8.0.20.0070.01117.22
8.0.10.0040.00416.85
8.0.00.0090.00916.61
7.4.330.0050.00012.92
7.4.320.0060.00016.58
7.4.300.0000.00716.50
7.4.290.0080.00016.58
7.4.280.0000.00716.61
7.4.270.0030.00316.61
7.4.260.0000.00513.29
7.4.250.0040.00416.57
7.4.240.0040.00416.54
7.4.230.0070.00016.41
7.4.220.0060.01216.47
7.4.210.0080.00716.59
7.4.200.0030.00316.66
7.4.190.0000.00716.73
7.4.160.0130.00316.58
7.4.150.0070.01016.49
7.4.140.0040.01316.37
7.4.130.0050.01316.53
7.4.120.0070.01016.55
7.4.110.0090.00916.30
7.4.100.0130.00416.41
7.4.90.0060.01216.65
7.4.80.0110.01416.39
7.4.70.0170.00016.47
7.4.60.0080.00716.55
7.4.50.0000.00916.48
7.4.40.0040.01216.57
7.4.30.0120.00416.70
7.4.00.0050.01215.13
7.3.330.0060.00013.19
7.3.320.0030.00313.37
7.3.310.0070.00016.24
7.3.300.0000.00716.26
7.3.290.0130.00616.45
7.3.280.0110.00516.27
7.3.270.0090.00916.49
7.3.260.0130.00316.49
7.3.250.0080.01316.39
7.3.240.0160.00016.26
7.3.230.0000.01616.57
7.3.210.0130.00316.29
7.3.200.0090.01319.39
7.3.190.0080.00916.35
7.3.180.0110.00416.29
7.3.170.0110.00516.23
7.3.160.0110.00716.59
7.3.120.0120.00414.94
7.3.110.0070.01015.07
7.3.100.0050.00915.10
7.3.90.0060.00915.17
7.3.80.0100.00615.04
7.3.70.0090.00615.04
7.3.60.0030.01215.05
7.3.50.0050.00915.06
7.3.40.0050.01015.10
7.3.30.0060.00615.08
7.3.20.0040.00816.65
7.3.10.0070.00716.52
7.3.00.0070.00916.77
7.2.330.0030.01316.51
7.2.320.0030.01316.56
7.2.310.0120.01216.48
7.2.300.0090.00816.23
7.2.290.0160.00016.68
7.2.250.0050.01315.21
7.2.240.0080.01214.96
7.2.230.0050.00815.07
7.2.220.0050.00915.13
7.2.210.0070.00715.28
7.2.200.0080.00815.11
7.2.190.0050.00814.99
7.2.180.0050.01115.12
7.2.170.0030.00815.16
7.2.60.0070.00716.65
7.2.00.0060.00919.07
7.1.330.0080.00715.76
7.1.320.0030.00915.64
7.1.310.0050.00815.80
7.1.300.0050.00715.70
7.1.290.0060.00715.52
7.1.280.0040.01015.63
7.1.270.0090.00615.66
7.1.260.0020.01215.71
7.1.200.0030.00615.79
7.1.100.0060.00617.91
7.1.70.0000.00717.08
7.1.60.0070.01719.40
7.1.50.0070.00316.86
7.1.00.0100.06722.30
7.0.200.0040.00416.51
7.0.140.0070.07021.95
7.0.120.0100.06722.09
7.0.60.0070.05719.93
7.0.50.0030.08317.87
7.0.40.0070.04320.09
7.0.30.0270.03020.30
7.0.20.0270.03720.30
7.0.10.0100.07720.35
7.0.00.0100.04720.09
5.6.280.0170.06020.99
5.6.210.0100.05320.57
5.6.200.0100.04318.16
5.6.190.0100.08020.77
5.6.180.0200.04720.42
5.6.170.0130.05020.55
5.6.160.0030.08720.55
5.6.150.0170.04018.19
5.6.140.0100.08018.21
5.6.130.0100.06718.28
5.6.120.0130.06021.10
5.6.110.0070.04720.97
5.6.100.0130.06020.94
5.6.90.0070.04021.08
5.6.80.0030.08020.35
5.5.350.0070.07320.44
5.5.340.0030.06018.09
5.5.330.0070.06720.32
5.5.320.0230.04020.25
5.5.310.0300.03720.27
5.5.300.0100.04717.97
5.5.290.0100.05018.08
5.5.280.0130.06320.77
5.5.270.0100.08720.89
5.5.260.0200.06320.80
5.5.250.0030.04720.45
5.5.240.0230.07020.29
5.4.450.0030.07319.18
5.4.440.0130.04319.41
5.4.430.0030.07019.48
5.4.420.0070.08019.56
5.4.410.0130.07019.17
5.4.400.0070.07718.93
5.4.390.0100.07319.25
5.4.380.0030.04019.25
5.4.370.0030.08319.25
5.4.360.0070.07019.24
5.4.350.0070.07019.14
5.4.340.0100.07019.20
5.4.320.0030.08019.08
5.4.310.0030.07319.20
5.4.300.0070.06318.97
5.4.290.0070.08018.85
5.4.280.0070.07719.15
5.4.270.0100.08019.08
5.4.260.0070.04318.85
5.4.250.0030.04319.24
5.4.240.0030.07319.14
5.4.230.0000.07018.85
5.4.220.0070.07018.93
5.4.210.0070.04319.11
5.4.200.0000.04019.14
5.4.190.0030.04018.96
5.4.180.0130.03019.04
5.4.170.0030.03719.00
5.4.160.0000.04019.13
5.4.150.0030.04718.84
5.4.140.0000.03716.43
5.4.130.0030.03316.44
5.4.120.0000.03716.44
5.4.110.0000.04016.52
5.4.100.0070.03316.35
5.4.90.0000.03716.58
5.4.80.0000.03716.43
5.4.70.0000.03716.34
5.4.60.0070.03316.40
5.4.50.0070.03016.43
5.4.40.0100.03016.41
5.4.30.0030.03716.41
5.4.20.0030.03316.64
5.4.10.0000.04316.36
5.4.00.0030.03315.73
5.3.290.0170.07314.70
5.3.280.0000.05014.65
5.3.270.0130.03314.63
5.3.260.0030.03714.63
5.3.250.0070.03714.50
5.3.240.0000.04014.64
5.3.230.0000.04014.60
5.3.220.0100.02714.57
5.3.210.0100.03014.66
5.3.200.0030.03714.60
5.3.190.0030.04314.58
5.3.180.0070.03014.45
5.3.170.0030.03714.59
5.3.160.0000.03714.48
5.3.150.0000.04314.62
5.3.140.0070.03714.59
5.3.130.0000.04014.63
5.3.120.0000.04014.61
5.3.110.0030.04714.55
5.3.100.0030.03714.07
5.3.90.0100.02714.17
5.3.80.0070.03014.10
5.3.70.0070.03714.03
5.3.60.0000.03714.07
5.3.50.0030.03713.96
5.3.40.0000.05013.99
5.3.30.0030.03713.96
5.3.20.0070.03313.61
5.3.10.0030.03313.66
5.3.00.0000.04013.70
5.2.170.0000.03011.17
5.2.160.0030.02711.13
5.2.150.0000.03311.21
5.2.140.0000.03011.30
5.2.130.0000.03011.07
5.2.120.0000.03011.17
5.2.110.0000.03011.16
5.2.100.0000.03011.16
5.2.90.0070.02711.06
5.2.80.0070.02711.16
5.2.70.0070.06311.11
5.2.60.0000.06711.07
5.2.50.0000.03311.02
5.2.40.0070.02710.94
5.2.30.0070.06311.13
5.2.20.0130.05311.00
5.2.10.0030.04011.04
5.2.00.0070.05010.75
5.1.60.0070.05310.05
5.1.50.0030.0479.91
5.1.40.0000.04710.04
5.1.30.0030.04310.38
5.1.20.0030.04710.37
5.1.10.0100.0379.99
5.1.00.0030.02710.06
5.0.50.0000.0408.70
5.0.40.0030.0238.32
5.0.30.0030.0408.25
5.0.20.0000.0378.21
5.0.10.0030.0438.23
5.0.00.0000.0708.12
4.4.90.0000.0337.78
4.4.80.0030.0177.78
4.4.70.0000.0337.78
4.4.60.0000.0337.78
4.4.50.0030.0337.78
4.4.40.0000.0577.78
4.4.30.0000.0407.78
4.4.20.0100.0207.78
4.4.10.0000.0237.78
4.4.00.0070.0537.78
4.3.110.0000.0177.78
4.3.100.0100.0277.78
4.3.90.0100.0237.78
4.3.80.0000.0577.78
4.3.70.0100.0307.78
4.3.60.0000.0377.78
4.3.50.0030.0377.78
4.3.40.0030.0477.78
4.3.30.0000.0307.78
4.3.20.0000.0237.78
4.3.10.0000.0377.78
4.3.00.0000.0337.78

preferences:
54.01 ms | 400 KiB | 5 Q