3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = range(0, 100); array_pop($array); unset($array[array_key_last($array)]); $array = array_slice($array, 0, -1, preserve_keys: 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.30.0100.00817.91
8.5.20.0090.00819.08
8.5.10.0140.00716.58
8.5.00.0140.00819.79
8.4.180.0110.01122.08
8.4.170.0130.00823.76
8.4.160.0130.00823.92
8.4.150.0080.00416.79
8.4.140.0130.00817.57
8.4.130.0100.01017.79
8.4.120.0120.00720.54
8.4.110.0060.01318.59
8.4.100.0130.00817.82
8.4.90.0150.00617.69
8.4.80.0070.00119.39
8.4.70.0120.00717.69
8.4.60.0120.00818.37
8.4.50.0100.01019.50
8.4.40.0460.00817.16
8.4.30.0330.00817.52
8.4.20.0290.00817.32
8.4.10.0370.01117.31
8.3.300.0120.00820.76
8.3.290.0110.01018.36
8.3.280.0110.00918.31
8.3.270.0120.00716.52
8.3.260.0100.00916.52
8.3.250.0130.00618.89
8.3.240.0110.00816.41
8.3.230.0130.00416.61
8.3.220.0120.00516.61
8.3.210.0060.00216.62
8.3.200.0120.00716.66
8.3.190.0120.00618.82
8.3.180.0110.00916.72
8.3.170.0390.00716.31
8.3.160.0400.00616.35
8.3.150.0380.00916.25
8.3.140.0340.01016.66
8.3.130.0350.00916.21
8.3.120.0340.00516.58
8.3.110.0310.00816.51
8.3.100.0300.01116.45
8.3.90.0310.01116.49
8.3.80.0320.01416.48
8.3.70.0380.00916.52
8.3.60.0350.00316.49
8.3.50.0370.00816.77
8.3.40.0350.00617.32
8.3.30.0120.00517.23
8.3.20.0280.00816.99
8.3.10.0350.00917.29
8.3.00.0130.01017.60
8.2.300.0060.00417.92
8.2.290.0080.00920.44
8.2.280.0040.00418.57
8.2.270.0240.00916.52
8.2.260.0270.00816.39
8.2.250.0310.00916.35
8.2.240.0310.00816.63
8.2.230.0310.00916.10
8.2.220.0320.00816.30
8.2.210.0300.00916.41
8.2.200.0340.00716.21
8.2.190.0330.00616.37
8.2.180.0330.00716.34
8.2.170.0290.00917.82
8.2.160.0350.00717.56
8.2.150.0360.00517.70
8.2.140.0460.00317.32
8.2.130.0350.00617.35
8.2.120.0310.01117.66
8.2.110.0350.00817.51
8.2.100.0320.00817.64
8.2.90.0290.00917.56
8.2.80.0310.00817.39
8.2.70.0290.00617.59
8.2.60.0190.00617.48
8.2.50.0290.00817.32
8.2.40.0280.01017.54
8.2.30.0300.00717.50
8.2.20.0280.01017.19
8.2.10.0280.00917.14
8.2.00.0390.00817.12
8.1.340.0120.00919.40
8.1.320.0120.00716.15

preferences:
61.89 ms | 838 KiB | 5 Q