3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ["1", "2", "3", "4", "5"]; $removed = array_splice( $array, -(count($array) >> 1) ); var_export([ 'first half' => $array, 'second half' => $removed ]);

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.0140.00917.92
8.5.20.0110.00520.23
8.5.10.0100.00916.62
8.5.00.0120.00920.09
8.4.180.0150.01119.55
8.4.170.0120.00920.29
8.4.160.0110.01120.61
8.4.150.0100.00216.89
8.4.140.0160.00917.70
8.4.130.0070.00319.55
8.4.120.0120.00820.23
8.4.110.0130.00822.34
8.4.100.0120.00918.74
8.4.90.0110.01118.75
8.4.80.0100.01018.61
8.4.70.0100.01017.68
8.4.60.0070.00218.82
8.4.50.0110.00518.55
8.4.40.0140.00717.65
8.4.30.0120.00819.06
8.4.20.0170.00718.83
8.4.10.0220.00617.15
8.3.300.0140.00720.75
8.3.290.0060.00320.70
8.3.280.0090.01218.26
8.3.270.0130.00616.33
8.3.260.0100.00916.66
8.3.250.0120.00818.96
8.3.240.0090.00816.93
8.3.230.0140.00616.55
8.3.220.0120.00718.82
8.3.210.0090.01116.81
8.3.200.0050.00416.74
8.3.190.0100.01017.13
8.3.180.0130.00616.85
8.3.170.0120.00617.19
8.3.160.0150.00319.00
8.3.150.0160.01116.27
8.3.140.0200.00016.40
8.3.130.0170.00016.73
8.3.120.0190.00016.35
8.3.110.0190.00016.50
8.3.100.0130.00716.52
8.3.90.0160.00416.52
8.3.80.0080.01216.51
8.3.70.0170.00616.35
8.3.60.0160.00416.53
8.3.50.0170.00716.29
8.3.40.0140.00317.49
8.3.30.0130.00317.37
8.3.20.0130.00317.12
8.3.10.0130.00317.05
8.3.00.0110.00317.39
8.2.300.0110.00822.30
8.2.290.0110.00722.07
8.2.280.0060.00418.39
8.2.270.0140.00316.55
8.2.260.0150.00316.25
8.2.250.0080.01116.58
8.2.240.0130.00416.32
8.2.230.0110.00616.41
8.2.220.0100.00716.36
8.2.210.0100.00716.48
8.2.200.0140.00416.56
8.2.190.0150.00416.12
8.2.180.0140.00416.48
8.2.170.0170.00317.68
8.2.160.0120.00617.62
8.2.150.0140.00417.49
8.2.140.0110.00817.53
8.2.130.0200.00017.26
8.2.120.0180.00017.50
8.2.110.0120.00617.38
8.2.100.0120.00617.27
8.2.90.0100.00717.68
8.2.80.0110.00717.40
8.2.70.0170.00017.04
8.2.60.0170.00017.39
8.2.50.0180.00017.43
8.2.40.0180.00017.37
8.2.30.0090.00917.50
8.2.20.0160.00017.11
8.2.10.0110.00517.09
8.2.00.0130.00317.23
8.1.340.0070.00521.57
8.1.320.0130.00616.13

preferences:
47.18 ms | 856 KiB | 5 Q