3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function foo(array $bar) { } } class B extends A { public function foo(array $bar, string $baz) { } }

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.0150.00618.71
8.3.30.0110.00318.58
8.3.20.0040.00420.14
8.3.10.0000.00821.73
8.3.00.0070.00023.67
8.2.170.0070.00722.96
8.2.160.0070.00720.39
8.2.150.0090.00025.66
8.2.140.0070.00724.66
8.2.130.0030.00519.64
8.2.120.0000.00726.35
8.2.110.0060.00322.09
8.2.100.0060.00617.55
8.2.90.0040.00419.13
8.2.80.0080.00017.97
8.2.70.0000.00917.38
8.2.60.0080.00017.80
8.2.50.0040.00418.07
8.2.40.0050.00322.15
8.2.30.0070.00020.53
8.2.20.0000.00717.61
8.2.10.0030.00517.91
8.2.00.0000.01018.04
8.1.270.0030.00621.74
8.1.260.0000.00828.09
8.1.250.0080.00028.09
8.1.240.0050.00522.48
8.1.230.0040.00719.00
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0050.00317.23
8.1.180.0070.00318.10
8.1.170.0040.00418.51
8.1.160.0070.00020.68
8.1.150.0070.00018.63
8.1.140.0030.00519.35
8.1.130.0000.00717.61
8.1.120.0040.00417.37
8.1.110.0030.00517.22
8.1.100.0070.00017.32
8.1.90.0040.00417.19
8.1.80.0030.00517.22
8.1.70.0000.00917.30
8.1.60.0000.00717.33
8.1.50.0000.00817.44
8.1.40.0000.00817.41
8.1.30.0000.00717.41
8.1.20.0000.00717.54
8.1.10.0060.00317.38
8.1.00.0090.00017.35
8.0.300.0040.00418.77
8.0.290.0070.00016.58
8.0.280.0030.00318.25
8.0.270.0030.00317.03
8.0.260.0060.00017.11
8.0.250.0000.00716.75
8.0.240.0030.00516.84
8.0.230.0030.00316.71
8.0.220.0000.00716.80
8.0.210.0070.00016.78
8.0.200.0000.00716.82
8.0.190.0070.00416.91
8.0.180.0060.00616.73
8.0.170.0000.00816.86
8.0.160.0030.00316.78
8.0.150.0030.00616.82
8.0.140.0050.00316.77
8.0.130.0000.00513.20
8.0.120.0000.00716.80
8.0.110.0080.00016.75
8.0.100.0000.00716.86
8.0.90.0000.00716.78
8.0.80.0060.00916.79
8.0.70.0050.00216.64
8.0.60.0040.00416.65
8.0.50.0000.00716.80
8.0.30.0090.00916.98
8.0.20.0090.01017.40
8.0.10.0070.00016.87
8.0.00.0100.00816.69
7.4.330.0020.00216.77
7.4.320.0000.00616.49
7.4.300.0030.00316.45
7.4.290.0000.00716.38
7.4.280.0070.00316.47
7.4.270.0000.00716.46
7.4.260.0090.00016.52
7.4.250.0040.00416.42
7.4.240.0040.00416.44
7.4.230.0030.00516.26
7.4.220.0000.02116.28
7.4.210.0060.01016.43
7.4.200.0040.00416.58
7.4.160.0030.01216.48
7.4.150.0130.01017.40
7.4.140.0100.00817.86
7.4.130.0080.01116.37
7.4.120.0080.01116.36
7.4.110.0090.00916.25
7.4.100.0130.00516.31
7.4.90.0040.01316.34
7.4.80.0070.01419.39
7.4.70.0090.00916.27
7.4.60.0070.01016.47
7.4.50.0000.01216.16
7.4.40.0040.01416.51
7.4.30.0100.01016.20
7.4.00.0040.01014.83
7.3.330.0050.00013.05
7.3.320.0030.00313.23
7.3.310.0000.00716.13
7.3.300.0000.00716.24
7.3.290.0000.00716.15
7.3.280.0090.00716.24
7.3.270.0030.01417.40
7.3.260.0070.01016.36
7.3.250.0090.00816.28
7.3.240.0070.00916.43
7.3.230.0140.00716.48
7.3.210.0130.00416.40
7.3.200.0150.00619.39
7.3.190.0070.01116.35
7.3.180.0070.01016.43
7.3.170.0090.00916.34
7.3.160.0100.00716.37
7.3.120.0110.00314.68
7.3.110.0030.01214.67
7.3.100.0060.00914.58
7.3.90.0030.00614.93
7.3.80.0070.00714.73
7.3.70.0080.00414.40
7.3.60.0090.00914.70
7.3.50.0090.00314.84
7.3.40.0070.00714.77
7.3.30.0000.01314.75
7.3.20.0000.01516.55
7.3.10.0080.01116.45
7.3.00.0090.00516.31
7.2.330.0120.00616.50
7.2.320.0060.01216.34
7.2.310.0140.00316.65
7.2.300.0110.01116.54
7.2.290.0040.01316.59
7.2.250.0070.01014.83
7.2.240.0120.00914.93
7.2.230.0060.00614.93
7.2.220.0030.01214.69
7.2.210.0030.00714.64
7.2.200.0030.01214.86
7.2.190.0040.01114.54
7.2.180.0070.00714.70
7.2.170.0060.00914.96
7.2.130.0180.00916.75
7.2.120.0150.00616.27
7.2.110.0150.00916.57
7.2.100.0100.00616.23
7.2.90.0110.00816.31
7.2.80.0110.00516.55
7.2.70.0190.01216.29
7.2.60.0120.01016.78
7.2.50.0110.00716.71
7.2.40.0220.00616.74
7.2.30.0140.00716.49
7.2.20.0150.00916.04
7.2.10.0180.00916.41
7.2.00.0110.00517.83
7.1.330.0030.01215.66
7.1.320.0000.00915.69
7.1.310.0030.00915.63
7.1.300.0040.01415.66
7.1.290.0000.00915.70
7.1.280.0080.00415.59
7.1.270.0030.01015.34
7.1.260.0000.01015.62
7.1.250.0160.01015.14
7.1.200.0070.00715.46
7.1.100.0040.00818.07
7.1.70.0070.00317.09
7.1.60.0140.01019.20
7.1.50.0000.01616.89
7.1.00.0000.08022.54
7.0.200.0030.00616.37
7.0.60.0000.08721.72
7.0.50.0000.05317.83
7.0.40.0070.04720.13
7.0.30.0330.07320.16
7.0.20.0270.07720.04
7.0.10.0070.07720.21
7.0.00.0070.09020.08
5.6.280.0030.04321.00
5.6.210.0070.08320.73
5.6.200.0000.06718.13
5.6.190.0070.08020.43
5.6.180.0570.06320.39
5.6.170.0300.04720.55
5.6.160.0070.08720.39
5.6.150.0130.07018.27
5.6.140.0170.07018.28
5.6.130.0070.03718.25
5.6.120.0100.07320.98
5.6.110.0070.08321.12
5.6.100.0070.04021.08
5.6.90.0070.08020.95
5.6.80.0070.08320.38
5.5.350.0330.07320.33
5.5.340.0000.06317.95
5.5.330.0000.09020.15
5.5.320.0500.03720.42
5.5.310.0230.06720.41
5.5.300.0000.08318.03
5.5.290.0170.07717.95
5.5.280.0030.08720.69
5.5.270.0100.07720.61
5.5.260.0130.05020.98
5.5.250.0100.06720.59
5.5.240.0200.06320.07

preferences:
53.97 ms | 400 KiB | 5 Q