3v4l.org

run code in 300+ PHP versions simultaneously
<?php function arraykey(int|string $arg) : int|string { return $arg; } var_dump([ arraykey("foo") => "foo", arraykey(42) => 42, ]);

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.5.30.0110.00720.26
8.5.20.0120.00620.31
8.5.10.0110.00618.64
8.5.00.0080.01419.86
8.4.180.0140.00919.54
8.4.170.0080.01324.05
8.4.160.0160.00623.98
8.4.150.0020.00014.05
8.4.140.0110.01017.24
8.4.130.0070.00117.54
8.4.120.0120.00720.46
8.4.110.0090.01322.64
8.4.100.0130.00717.50
8.4.90.0120.00819.39
8.4.80.0150.00517.44
8.4.70.0110.00617.55
8.4.60.0140.00518.58
8.4.50.0120.00419.45
8.4.40.0130.00719.22
8.4.30.0060.01320.50
8.4.20.0030.01617.96
8.4.10.0100.00017.72
8.3.300.0110.00920.82
8.3.290.0080.01220.82
8.3.280.0110.00818.05
8.3.270.0090.01316.61
8.3.260.0110.00516.51
8.3.250.0040.00418.92
8.3.240.0120.00716.46
8.3.230.0040.00416.74
8.3.220.0120.00717.41
8.3.210.0080.00816.51
8.3.200.0060.00216.89
8.3.190.0090.00916.57
8.3.180.0080.01218.75
8.3.170.0100.01017.35
8.3.160.0100.00720.43
8.3.150.0070.01116.59
8.3.140.0040.00417.03
8.3.130.0050.00318.52
8.3.120.0090.00020.54
8.3.110.0100.00720.94
8.3.100.0060.00324.06
8.3.90.0080.00326.77
8.3.80.0100.00016.53
8.3.70.0170.00316.58
8.3.60.0040.01218.43
8.3.50.0070.01118.54
8.3.40.0040.01118.96
8.3.30.0070.00719.01
8.3.20.0000.00724.18
8.3.10.0070.00024.66
8.3.00.0080.00026.16
8.2.300.0120.01118.79
8.2.290.0110.00720.44
8.2.280.0120.00820.05
8.2.270.0080.01116.87
8.2.260.0070.00416.58
8.2.250.0030.00616.38
8.2.240.0160.00316.92
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0070.00726.77
8.2.200.0090.00016.50
8.2.190.0100.01716.63
8.2.180.0000.01825.92
8.2.170.0180.00418.82
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00426.16
8.2.110.0090.00020.52
8.2.100.0030.00718.42
8.1.340.0090.01019.82
8.1.330.0150.00421.96
8.1.320.0080.01115.84
8.1.310.0090.00918.55
8.1.300.0090.00617.76
8.1.290.0080.00318.88
8.1.280.0140.00025.92
8.1.270.0040.00423.99
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0100.00018.50
8.1.230.0090.00018.57
8.1.30.0050.00317.52

preferences:
71.26 ms | 403 KiB | 5 Q