3v4l.org

run code in 500+ PHP versions simultaneously
<?php // what does 1 and true mean here? $keys = array_keys($array, 1, true); // yes but of course $keys = array_keys($array, filter_value:1, strict:true); ?>

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.90.0090.00917.00
8.5.80.0050.00216.85
8.5.70.0100.00817.07
8.5.60.0040.00316.80
8.5.50.0110.00816.89
8.5.30.0090.00818.05
8.5.20.0060.00220.14
8.5.10.0130.00616.91
8.5.00.0090.01219.96
8.4.240.0040.00719.49
8.4.230.0060.00219.59
8.4.220.0140.00719.59
8.4.210.0170.00421.48
8.4.180.0150.00719.49
8.4.170.0120.01023.86
8.4.160.0140.00923.73
8.4.150.0090.00416.91
8.4.140.0100.01017.66
8.4.130.0100.00717.88
8.4.120.0140.00620.58
8.4.110.0070.01019.00
8.4.100.0100.01017.80
8.4.90.0150.00517.90
8.4.80.0320.01018.52
8.4.70.0430.01017.69
8.4.60.0390.00917.75
8.4.50.0230.00517.80
8.4.40.0210.00217.68
8.4.30.0210.00217.42
8.4.20.0230.00317.37
8.4.10.0260.00417.62
8.3.330.0120.00818.55
8.3.320.0100.00418.54
8.3.310.0120.00918.48
8.3.300.0100.01020.73
8.3.290.0130.00820.82
8.3.280.0100.01020.17
8.3.270.0080.01216.42
8.3.260.0110.00816.68
8.3.250.0110.00818.75
8.3.240.0070.00316.68
8.3.230.0060.00216.70
8.3.220.0150.00418.98
8.3.210.0270.00616.89
8.3.200.0140.00716.89
8.3.190.0160.00516.89
8.3.180.0140.00716.89
8.3.170.0180.00516.89
8.3.160.0320.00818.30
8.3.150.0210.00216.89
8.3.140.0320.00616.89
8.3.130.0260.00516.89
8.3.120.0180.00316.89
8.3.110.0190.00416.89
8.3.100.0250.00516.89
8.3.90.0260.00616.89
8.3.80.0200.00416.89
8.3.70.0190.00516.89
8.3.60.0230.00916.89
8.3.50.0210.00316.89
8.3.40.0250.01017.38
8.3.30.0370.00717.39
8.3.20.0240.00517.52
8.3.10.0340.00817.63
8.3.00.0160.00519.33
8.2.320.0150.00418.18
8.2.310.0130.00618.22
8.2.300.0110.00818.68
8.2.290.0130.00520.18
8.2.280.0240.00816.89
8.2.270.0300.01216.89
8.2.260.0360.00716.89
8.2.250.0350.00716.89
8.2.240.0280.00416.89
8.2.230.0370.01016.89
8.2.220.0410.00716.89
8.2.210.0330.01016.89
8.2.200.0320.01016.89
8.2.190.0300.00816.89
8.2.180.0330.00916.89
8.2.170.0370.00817.50
8.2.160.0360.00717.68
8.2.150.0370.00717.46
8.2.140.0390.00617.45
8.2.130.0420.00917.43
8.2.120.0250.00417.52
8.2.110.0390.00517.43
8.2.100.0320.00617.47
8.2.90.0320.01117.61
8.2.80.0380.00617.57
8.2.70.0380.00717.41
8.2.60.0230.00617.48
8.2.50.0210.00617.47
8.2.40.0230.00517.40
8.2.30.0290.01117.47
8.2.20.0390.00917.54
8.2.10.0210.00617.40
8.2.00.0290.01017.36
8.1.340.0130.01023.54

preferences:
61.86 ms | 920 KiB | 5 Q