3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 4 => 'apple', 7 => 'orange', 13 => 'plum' ]; var_export( array_first($array) );

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.00618.01
8.5.20.0120.00520.38
8.5.10.0060.00416.46
8.5.00.0100.01319.78
8.4.180.0180.00719.80
8.4.170.0070.01321.98
8.4.160.0150.00822.00
8.4.150.0090.00316.89
8.4.140.0150.00617.61
8.4.130.0060.00817.96
8.4.120.0120.00823.87
8.4.110.0050.00322.55
8.4.100.0120.00818.15
8.4.90.0110.00917.86
8.4.80.0100.01117.82
8.4.70.0090.01118.00
8.4.60.0290.01018.07
8.4.50.0280.00918.07
8.4.40.0340.00717.34
8.4.30.0300.00519.25
8.4.20.0460.00717.50
8.4.10.0380.01417.46
8.3.300.0120.00820.85
8.3.290.0110.01120.80
8.3.280.0150.00618.35
8.3.270.0140.00616.62
8.3.260.0110.00816.86
8.3.250.0080.01118.95
8.3.240.0110.00816.99
8.3.230.0140.00616.52
8.3.220.0090.00716.97
8.3.210.0060.00316.97
8.3.200.0390.00916.97
8.3.190.0260.00216.97
8.3.180.0120.00718.42
8.3.170.0420.01116.97
8.3.160.0300.00816.97
8.3.150.0230.00116.97
8.3.140.0330.00516.97
8.3.130.0170.00416.97
8.3.120.0140.00716.97
8.3.110.0300.00516.97
8.3.100.0430.00816.97
8.3.90.0390.01116.97
8.3.80.0430.00916.97
8.3.70.0430.00916.97
8.3.60.0430.00916.97
8.3.50.0160.00716.97
8.3.40.0380.00817.69
8.3.30.0160.00517.74
8.3.20.0170.00417.57
8.3.10.0320.00817.66
8.3.00.0190.00917.38
8.2.300.0130.00620.41
8.2.290.0130.00518.80
8.2.280.0300.00716.97
8.2.270.0360.00516.97
8.2.260.0310.01016.97
8.2.250.0350.00716.97
8.2.240.0370.00616.97
8.2.230.0310.00816.97
8.2.220.0330.01016.97
8.2.210.0330.00816.97
8.2.200.0330.00816.97
8.2.190.0240.00816.97
8.2.180.0310.00716.97
8.2.170.0390.00717.50
8.2.160.0390.00817.60
8.2.150.0430.00617.41
8.2.140.0270.00717.48
8.2.130.0470.00617.48
8.2.120.0370.00617.64
8.2.110.0230.00617.43
8.2.100.0280.00917.57
8.2.90.0260.00517.71
8.2.80.0320.00917.38
8.2.70.0410.00217.33
8.2.60.0340.00917.17
8.2.50.0390.00517.34
8.2.40.0340.00717.50
8.2.30.0430.00617.35
8.2.20.0250.01417.46
8.2.10.0320.00717.58
8.2.00.0210.00417.58
8.1.340.0130.00920.31

preferences:
60.79 ms | 850 KiB | 5 Q