3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function test($a, $b = 'test') { } } class bar extends foo { public function test($a, $b = 'test', $c = null) { } } class baz extends foo { public function test($a, $b = 'test', $c) { } } class bazbaz extends foo { public function test($a, $b, $c) { } } (new foo)->test(1, 2); (new bar)->test(1, 2); (new baz)->test(1, 2); (new bazbaz)->test(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.60.0040.01116.75
8.3.50.0090.01021.89
8.3.40.0040.01418.79
8.3.30.0000.01818.54
8.3.20.0070.00020.21
8.3.10.0040.00423.66
8.3.00.0150.00023.65
8.2.180.0140.00418.42
8.2.170.0070.01122.96
8.2.160.0070.00720.52
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0050.00319.57
8.2.120.0040.00426.35
8.2.110.0040.00421.07
8.2.100.0040.00817.80
8.2.90.0040.00419.06
8.2.80.0080.00017.97
8.2.70.0070.00317.50
8.2.60.0070.00417.91
8.2.50.0080.00018.07
8.2.40.0030.00620.55
8.2.30.0070.00019.29
8.2.20.0060.00317.56
8.2.10.0040.00417.92
8.2.00.0040.00417.83
8.1.280.0110.00325.92
8.1.270.0060.00323.96
8.1.260.0000.00828.09
8.1.250.0080.00028.09
8.1.240.0000.00924.02
8.1.230.0120.00019.09
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.10
8.1.190.0000.00817.00
8.1.180.0040.00418.10
8.1.170.0040.00418.62
8.1.160.0050.00220.72
8.1.150.0050.00218.75
8.1.140.0040.00419.49
8.1.130.0030.00317.56
8.1.120.0070.00017.33
8.1.110.0030.00317.35
8.1.100.0030.00417.25
8.1.90.0080.00017.22
8.1.80.0030.00517.22
8.1.70.0000.00717.38
8.1.60.0000.00817.43
8.1.50.0000.00817.36
8.1.40.0040.00417.43
8.1.30.0000.00817.54
8.1.20.0040.00417.42
8.1.10.0040.00417.24
8.1.00.0060.00317.17
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0050.00318.25
8.0.270.0040.00417.20
8.0.260.0030.00317.13
8.0.250.0040.00416.91
8.0.240.0050.00216.85
8.0.230.0040.00416.86
8.0.220.0000.00716.84
8.0.210.0030.00316.82
8.0.200.0030.00316.95
8.0.190.0030.00616.87
8.0.180.0000.00716.77
8.0.170.0030.00616.88
8.0.160.0040.00316.75
8.0.150.0030.00316.67
8.0.140.0030.00316.82
8.0.130.0030.00313.20
8.0.120.0000.00816.80
8.0.110.0040.00416.73
8.0.100.0040.00416.79
8.0.90.0040.00416.74
8.0.80.0120.00316.87
8.0.70.0000.00716.86
8.0.60.0030.00316.63
8.0.50.0000.00716.77
8.0.30.0050.01016.88
8.0.20.0090.01017.40
8.0.10.0040.00416.98
8.0.00.0080.01016.72
7.4.330.0000.00516.79
7.4.320.0040.00416.40
7.4.300.0000.00616.44
7.4.290.0060.00016.34
7.4.280.0090.00316.52
7.4.270.0030.00316.46
7.4.260.0030.00316.42
7.4.250.0070.00016.51
7.4.240.0040.00416.40
7.4.230.0040.00416.44
7.4.220.0060.02216.52
7.4.210.0090.00716.48
7.4.200.0000.00716.36
7.4.160.0080.01116.32
7.4.150.0090.00917.40
7.4.140.0070.01017.86
7.4.130.0110.00816.45
7.4.120.0060.01116.43
7.4.110.0120.00616.54
7.4.100.0090.01216.27
7.4.90.0070.01016.35
7.4.80.0030.02019.39
7.4.70.0100.00616.46
7.4.60.0040.01216.36
7.4.50.0030.01316.45
7.4.40.0080.01116.34
7.4.30.0130.00416.64
7.4.00.0100.00714.96
7.3.330.0060.00013.38
7.3.320.0030.00313.23
7.3.310.0030.00316.41
7.3.300.0040.00416.22
7.3.290.0040.00216.23
7.3.280.0070.01216.38
7.3.270.0060.01217.40
7.3.260.0070.01016.58
7.3.250.0110.00616.39
7.3.240.0070.01216.32
7.3.230.0070.01116.39
7.3.210.0030.01316.37
7.3.200.0120.01519.39
7.3.190.0070.00816.42
7.3.180.0060.00916.29
7.3.170.0120.00616.55
7.3.160.0070.00716.46
7.3.120.0040.01514.61
7.3.110.0100.00615.05
7.3.100.0110.00414.84
7.3.90.0060.00314.92
7.3.80.0060.00314.86
7.3.70.0040.00714.78
7.3.60.0000.01014.58
7.3.50.0100.00314.89
7.3.40.0100.00714.47
7.3.30.0070.00714.80
7.3.20.0120.00016.70
7.3.10.0090.00316.57
7.3.00.0080.00816.49
7.2.330.0080.00816.36
7.2.320.0110.00816.57
7.2.310.0110.00816.56
7.2.300.0080.01216.61
7.2.290.0120.00316.36
7.2.250.0080.01214.63
7.2.240.0080.01115.10
7.2.230.0070.00714.62
7.2.220.0030.00814.90
7.2.210.0030.01015.13
7.2.200.0030.01315.05
7.2.190.0040.01114.63
7.2.180.0110.00714.78
7.2.170.0030.01315.01
7.2.60.0100.00516.79
7.2.50.0000.01616.85
7.1.330.0060.00915.80
7.1.320.0060.00915.69
7.1.310.0090.00315.51
7.1.300.0100.00315.45
7.1.290.0000.01315.48
7.1.280.0040.01115.40
7.1.270.0070.00715.37
7.1.260.0030.00915.73
7.1.200.0060.00315.63
7.1.70.0090.00617.09
7.1.60.0040.01519.18
7.1.50.0090.00916.54
7.1.00.0030.07722.31
7.0.200.0230.01016.73
7.0.60.0030.08721.71
7.0.50.0070.05717.87
7.0.40.0070.04320.15
7.0.30.0470.04020.17
7.0.20.0270.07720.09
7.0.10.0100.04020.24
7.0.00.0070.08320.23
5.6.280.0000.06721.03
5.6.210.0100.07020.77
5.6.200.0070.05018.19
5.6.190.0130.07720.64
5.6.180.0430.04720.61
5.6.170.0270.06020.44
5.6.160.0170.06020.53
5.6.150.0070.08318.14
5.6.140.0070.08318.24
5.6.130.0100.04018.18
5.6.120.0000.04720.97
5.6.110.0030.04321.01
5.6.100.0100.06021.12
5.6.90.0070.04020.98
5.6.80.0100.08020.36
5.5.350.0270.07720.31
5.5.340.0100.05717.99
5.5.330.0030.04320.41
5.5.320.0230.06020.38
5.5.310.0270.06020.28
5.5.300.0030.03717.95
5.5.290.0000.06017.99
5.5.280.0070.08320.86
5.5.270.0070.04320.85
5.5.260.0000.09020.65
5.5.250.0070.04020.66
5.5.240.0200.06320.23

preferences:
51.23 ms | 401 KiB | 5 Q