3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f(string $p1 = 'foo', $p2){ } function test(string $name) { echo new ReflectionFunction($name), "\n"; } echo "--- Test with f() ---\n"; test("f");

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.4.140.0140.00617.38
8.4.130.0110.00817.73
8.4.120.0080.00320.46
8.4.110.0110.00822.43
8.4.100.0130.00817.68
8.4.90.0120.01117.66
8.4.80.0120.00917.62
8.4.70.0120.00917.75
8.4.60.0100.01117.61
8.4.50.0130.00718.44
8.4.40.0150.00617.54
8.4.30.0160.00320.73
8.4.20.0100.01017.75
8.4.10.0160.00319.61
8.3.270.0130.00616.85
8.3.260.0060.00316.82
8.3.250.0070.01118.73
8.3.240.0100.00816.66
8.3.230.0120.00716.86
8.3.220.0120.00717.00
8.3.210.0130.00916.79
8.3.200.0170.00616.92
8.3.190.0100.01016.72
8.3.180.0100.00916.70
8.3.170.0210.00418.60
8.3.160.0130.00618.63
8.3.150.0090.00018.82
8.3.140.0030.00616.72
8.3.130.0070.00018.78
8.3.120.0060.00319.03
8.3.110.0040.00420.94
8.3.100.0040.01224.06
8.3.90.0070.00326.77
8.3.80.0090.00018.30
8.3.70.0140.00418.43
8.3.60.0110.01116.63
8.3.50.0150.00616.69
8.3.40.0140.00720.29
8.3.30.0130.00619.08
8.3.20.0110.00724.18
8.3.10.0060.01324.66
8.3.00.0100.01026.16
8.2.290.0130.00620.13
8.2.280.0100.00816.39
8.2.270.0090.00917.34
8.2.260.0150.00320.04
8.2.250.0120.00616.61
8.2.240.0040.00419.12
8.2.230.0090.00022.58
8.2.220.0060.00337.54
8.2.210.0090.00926.77
8.2.200.0060.00316.38
8.2.190.0130.00316.58
8.2.180.0110.00716.38
8.2.170.0100.01018.93
8.2.160.0070.00722.96
8.2.150.0110.00725.66
8.2.140.0060.01324.66
8.2.130.0110.00726.16
8.2.120.0030.00520.88
8.2.110.0040.00722.08
8.2.100.0030.00720.75
8.2.90.0040.00820.36
8.2.80.0100.00020.51
8.2.70.0090.00920.52
8.2.60.0120.00920.46
8.2.50.0040.00820.50
8.2.40.0070.00420.53
8.2.30.0070.00320.62
8.2.20.0130.00720.23
8.2.10.0070.00420.81
8.2.00.0060.00320.64
8.1.330.0090.01116.47
8.1.320.0100.00918.07
8.1.310.0070.01018.53
8.1.300.0000.00816.22
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0040.00424.66
8.1.260.0160.00326.35
8.1.250.0140.00428.09
8.1.240.0150.00320.39
8.1.230.0100.01320.40
8.1.220.0070.00420.44
8.1.210.0070.01121.66
8.1.200.0100.00720.35
8.1.190.0110.00020.07
8.1.180.0060.00320.08
8.1.170.0100.00020.27
8.1.160.0030.00720.39
8.1.150.0050.00520.32
8.1.140.0120.00620.15
8.1.130.0100.00020.32
8.1.120.0030.00620.20
8.1.110.0030.00720.29
8.1.100.0100.00020.28
8.1.90.0140.00420.20
8.1.80.0030.00720.34
8.1.70.0100.00620.34
8.1.60.0100.00020.38
8.1.50.0080.00320.41
8.1.40.0030.01620.51
8.1.30.0100.00020.71
8.1.20.0120.00620.53
8.1.10.0090.00920.32
8.1.00.0070.01020.47
8.0.300.0110.00019.72
8.0.290.0070.00319.64
8.0.280.0100.00019.64
8.0.270.0070.01319.69
8.0.260.0100.00019.77
8.0.250.0120.00919.75
8.0.240.0060.00619.84
8.0.230.0110.00319.84
8.0.220.0030.00719.68
8.0.210.0070.01019.69
8.0.200.0060.00319.61
8.0.190.0070.00319.53
8.0.180.0070.00319.79
8.0.170.0100.00019.80
8.0.160.0070.01419.75
8.0.150.0100.01019.39
8.0.140.0100.00019.76
8.0.130.0030.00719.65
8.0.120.0140.00319.70
8.0.110.0050.00519.82
8.0.100.0100.00019.70
8.0.90.0100.01019.62
8.0.80.0040.00719.70
8.0.70.0040.00819.61
8.0.60.0090.00619.52
8.0.50.0060.00319.53
8.0.30.0100.00019.57
8.0.20.0100.00019.70
8.0.10.0000.01019.75

preferences:
34.39 ms | 403 KiB | 5 Q