3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(scalar_types=1); class A { public function foo(int $a, float $b) { } } class B { public function foo($a, $b) { } } $b = new B(); $b->foo('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.0070.01416.50
8.3.50.0110.01121.94
8.3.40.0060.01218.57
8.3.30.0100.00318.82
8.3.20.0040.00420.33
8.3.10.0040.00421.89
8.3.00.0040.00419.19
8.2.180.0180.00418.20
8.2.170.0130.00722.96
8.2.160.0110.00721.95
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0000.01426.16
8.2.120.0030.00519.67
8.2.110.0040.00720.38
8.2.100.0030.00917.72
8.2.90.0060.00317.50
8.2.80.0060.00317.97
8.2.70.0000.00917.80
8.2.60.0040.00418.03
8.2.50.0000.00818.10
8.2.40.0000.00719.35
8.2.30.0040.00419.18
8.2.20.0000.00817.70
8.2.10.0040.00418.00
8.2.00.0000.00817.62
8.1.280.0030.01725.92
8.1.270.0030.00618.88
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00323.97
8.1.230.0040.00718.88
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.25
8.1.190.0040.00417.11
8.1.180.0050.00318.10
8.1.170.0030.00618.51
8.1.160.0000.00918.82
8.1.150.0040.00418.81
8.1.140.0040.00417.38
8.1.130.0030.00317.79
8.1.120.0000.00717.37
8.1.110.0000.00717.41
8.1.100.0000.00717.44
8.1.90.0000.00817.45
8.1.80.0000.00717.23
8.1.70.0000.00617.29
8.1.60.0080.00017.59
8.1.50.0050.00317.54
8.1.40.0070.00017.41
8.1.30.0030.00617.66
8.1.20.0000.00717.50
8.1.10.0040.00417.42
8.1.00.0040.00417.45
8.0.300.0030.00521.61
8.0.290.0080.00016.75
8.0.280.0000.00718.49
8.0.270.0070.00017.14
8.0.260.0030.00317.18
8.0.250.0040.00416.93
8.0.240.0030.00516.82
8.0.230.0030.00316.95
8.0.220.0040.00416.80
8.0.210.0070.00016.88
8.0.200.0070.00016.81
8.0.190.0000.00817.01
8.0.180.0000.00816.82
8.0.170.0070.00016.78
8.0.160.0030.00616.89
8.0.150.0000.00716.83
8.0.140.0070.00016.79
8.0.130.0000.00813.28
8.0.120.0030.00616.89
8.0.110.0000.00716.78
8.0.100.0050.00216.84
8.0.90.0000.00716.88
8.0.80.0080.00816.84
8.0.70.0040.00416.91
8.0.60.0050.00316.84
8.0.50.0040.00416.94
8.0.30.0110.01116.92
8.0.20.0120.00917.40
8.0.10.0030.00517.03
8.0.00.0090.01216.98
7.4.330.0060.00015.03
7.4.320.0030.00316.48
7.4.300.0030.00316.50
7.4.290.0000.00716.43
7.4.280.0000.00916.63
7.4.270.0060.00016.50
7.4.260.0040.00316.63
7.4.250.0040.00416.48
7.4.240.0020.00616.54
7.4.230.0030.00316.41
7.4.220.0060.01616.52
7.4.210.0060.01316.71
7.4.200.0000.00716.59
7.4.160.0060.00916.43
7.4.150.0070.01317.40
7.4.140.0110.00617.86
7.4.130.0110.00916.51
7.4.120.0130.00516.41
7.4.110.0100.00716.65
7.4.100.0120.00616.46
7.4.90.0040.01416.27
7.4.80.0080.01119.39
7.4.70.0140.00716.33
7.4.60.0130.00316.30
7.4.50.0030.00616.39
7.4.40.0090.00916.57
7.4.30.0170.00016.34
7.4.00.0070.01014.82
7.3.330.0050.00013.13
7.3.320.0000.00513.30
7.3.310.0030.00316.11
7.3.300.0030.00316.30
7.3.290.0040.01016.24
7.3.280.0080.00916.25
7.3.270.0130.00317.40
7.3.260.0190.00316.28
7.3.250.0100.00916.43
7.3.240.0170.00316.36
7.3.230.0090.00816.41
7.3.210.0150.00616.21
7.3.200.0100.01319.39
7.3.190.0100.00716.30
7.3.180.0060.00916.30
7.3.170.0100.00716.27
7.3.160.0130.00316.25
7.3.120.0060.00914.62
7.3.110.0110.00414.73
7.3.100.0000.01314.71
7.3.90.0040.01114.99
7.3.80.0070.01014.67
7.3.70.0070.00714.69
7.3.60.0070.00714.69
7.3.50.0030.00614.58
7.3.40.0000.01314.85
7.3.30.0060.00614.75
7.3.20.0000.01216.56
7.3.10.0110.00316.55
7.3.00.0060.00616.72
7.2.330.0100.00616.60
7.2.320.0100.00716.65
7.2.310.0100.01316.47
7.2.300.0080.00816.74
7.2.290.0100.00716.41
7.2.250.0070.01014.73
7.2.240.0030.01515.05
7.2.230.0060.00914.96
7.2.220.0070.00715.13
7.2.210.0110.00714.74
7.2.200.0080.00414.61
7.2.190.0060.00615.02
7.2.180.0030.00914.76
7.2.170.0000.01014.92
7.2.00.0060.00919.22
7.1.330.0090.00615.85
7.1.320.0100.00315.72
7.1.310.0070.00315.50
7.1.300.0030.00615.61
7.1.290.0070.00315.45
7.1.280.0070.00315.63
7.1.270.0030.01015.45
7.1.260.0060.00315.35
7.1.100.0070.01017.75
7.1.70.0000.01517.15
7.1.60.0070.00419.22
7.1.50.0110.01116.91
7.1.00.0100.07022.45
7.0.200.0030.00516.62
7.0.140.0070.06722.11
7.0.60.0000.08719.94
7.0.50.0030.04717.88
7.0.40.0070.06020.13
7.0.30.2030.04720.34
7.0.20.0300.07720.16
7.0.10.0070.05320.09
7.0.00.0030.04020.09
5.6.280.0100.06721.13
5.6.210.0100.07320.48
5.6.200.0030.04018.23
5.6.190.0070.04320.50
5.6.180.0270.08320.77
5.6.170.0200.05320.54
5.6.160.0030.08320.50
5.6.150.0030.08718.24
5.6.140.0100.07718.18
5.6.130.0170.07718.19
5.6.120.0070.05321.10
5.6.110.0100.03721.02
5.6.100.0130.06320.98
5.6.90.0070.04321.00
5.6.80.0070.05720.36
5.5.350.0230.07720.45
5.5.340.0070.07718.00
5.5.330.0000.04320.44
5.5.320.0200.06320.34
5.5.310.0200.08320.27
5.5.300.0100.07317.98
5.5.290.0100.05318.02
5.5.280.0030.04020.78
5.5.270.0130.07720.68
5.5.260.0300.06020.84
5.5.250.0070.06320.77
5.5.240.0000.03720.21
5.4.450.0470.06019.17
5.4.440.0500.06319.32
5.4.430.0370.05719.56
5.4.420.0630.05719.47
5.4.410.0600.06019.44
5.4.400.0500.04719.24
5.4.390.0570.05019.28
5.4.380.0200.05718.60
5.4.370.0330.06018.79
5.4.360.0100.06318.54
5.4.350.0270.05318.45
5.4.340.0230.05018.76
5.4.320.0200.05318.61
5.4.310.0300.04718.56
5.4.300.0200.05718.75
5.4.290.0170.05718.61
5.4.280.0170.05718.65
5.4.270.0230.05318.60
5.4.260.0370.07718.80
5.4.250.0230.05018.71
5.4.240.0270.05018.61
5.4.230.0230.04718.74
5.4.220.0170.05718.68
5.4.210.0230.05318.56
5.4.200.0170.05316.66
5.4.190.0170.05318.61
5.4.180.0170.05718.76
5.4.170.0130.06018.54
5.4.160.0200.05018.68
5.4.150.0130.05718.50
5.4.140.0170.05716.36
5.4.130.0200.05016.21
5.4.120.0230.05016.27
5.4.110.0230.06716.29
5.4.100.0270.06316.27
5.4.90.0170.05316.25
5.4.80.0270.04316.19
5.4.70.0200.05716.41
5.4.60.0230.05316.15
5.4.50.0270.05016.30
5.4.40.0300.04716.27
5.4.30.0100.06716.24
5.4.20.0170.05316.13
5.4.10.0270.05716.39
5.4.00.0130.05715.70
5.3.290.0270.04714.69
5.3.280.0200.05314.64
5.3.270.0130.05714.64
5.3.260.0300.06714.71
5.3.250.0270.07014.64
5.3.240.0270.07014.77
5.3.230.0400.05714.60
5.3.220.0200.07314.79
5.3.210.0270.06714.62
5.3.200.0230.04714.61
5.3.190.0270.04314.68
5.3.180.0170.06014.69
5.3.170.0170.05314.78
5.3.160.0230.05014.75
5.3.150.0130.05314.68
5.3.140.0070.06314.72
5.3.130.0130.06014.54
5.3.120.0230.04714.65
5.3.110.0270.04714.74
5.3.100.0100.06314.04
5.3.90.0200.05714.24
5.3.80.0270.04314.23
5.3.70.0130.06014.06
5.3.60.0270.04714.13
5.3.50.0230.04714.14
5.3.40.0270.06013.95
5.3.30.0100.05714.04
5.3.20.0200.04713.74
5.3.10.0200.04713.88
5.3.00.0200.04713.69
5.2.170.0200.03711.38
5.2.160.0200.03711.27
5.2.150.0070.05011.21
5.2.140.0130.05011.25
5.2.130.0130.04311.23
5.2.120.0230.03011.32
5.2.110.0100.04711.33
5.2.100.0170.04011.15
5.2.90.0130.04711.16
5.2.80.0100.05011.21
5.2.70.0170.04711.16
5.2.60.0170.04011.10
5.2.50.0200.03711.08
5.2.40.0230.05010.98
5.2.30.0200.05011.18
5.2.20.0130.04711.14
5.2.10.0100.05011.07
5.2.00.0130.04310.92
5.1.60.0200.03710.02
5.1.50.0100.04310.04
5.1.40.0330.02010.05
5.1.30.0130.04010.36
5.1.20.0300.03010.39
5.1.10.0100.05310.20
5.1.00.0130.03310.06
5.0.50.0200.0238.59
5.0.40.0000.0378.47
5.0.30.0070.0478.35
5.0.20.0000.0338.40
5.0.10.0070.0308.21
5.0.00.0070.0438.35
4.4.90.0030.0236.84
4.4.80.0000.0276.84
4.4.70.0100.0276.84
4.4.60.0130.0176.84
4.4.50.0030.0306.84
4.4.40.0070.0406.84
4.4.30.0100.0206.84
4.4.20.0030.0376.84
4.4.10.0030.0376.84
4.4.00.0070.0376.84
4.3.110.0170.0236.84
4.3.100.0070.0206.84
4.3.90.0130.0236.84
4.3.80.0070.0336.84
4.3.70.0070.0236.84
4.3.60.0070.0206.84
4.3.50.0030.0236.84
4.3.40.0100.0306.84
4.3.30.0100.0336.84
4.3.20.0070.0236.84
4.3.10.0030.0276.84
4.3.00.0100.0237.63

preferences:
52.03 ms | 401 KiB | 5 Q