3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [1,2,3,4,5]; function array_pop_unshift($array) { array_unshift($array, array_pop($array)); return $array; } print_r(array_pop_unshift($a));

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.3.110.0080.00020.94
8.3.100.0040.00424.06
8.3.90.0070.00326.77
8.3.80.0060.00318.25
8.3.70.0030.01318.43
8.3.60.0110.01118.31
8.3.50.0100.00724.51
8.3.40.0090.00618.89
8.3.30.0110.00418.54
8.3.20.0030.00624.18
8.3.10.0000.00824.66
8.3.00.0000.00826.16
8.2.230.0060.00322.58
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0000.01018.88
8.2.190.0040.01418.16
8.2.180.0040.01125.92
8.2.170.0040.01118.74
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0050.00524.66
8.2.130.0080.00026.16
8.2.120.0070.00026.35
8.2.110.0000.01020.35
8.2.100.0080.00319.45
8.2.90.0060.00319.17
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0090.00517.31
8.2.50.0070.00717.66
8.2.40.0080.00618.29
8.2.30.0100.00317.95
8.2.20.0050.00618.19
8.2.10.0090.00617.84
8.2.00.0110.00417.84
8.1.290.0060.00330.84
8.1.280.0030.01325.92
8.1.270.0080.00023.77
8.1.260.0000.00728.09
8.1.250.0000.00728.09
8.1.240.0040.00420.84
8.1.230.0110.00017.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.53
8.1.190.0110.00416.93
8.1.180.0080.00517.49
8.1.170.0110.00417.65
8.1.160.0060.00817.79
8.1.150.0090.00517.66
8.1.140.0080.00418.00
8.1.130.0090.00517.95
8.1.120.0100.00517.29
8.1.110.0080.00717.27
8.1.100.0090.00617.38
8.1.90.0090.00617.29
8.1.80.0070.00817.30
8.1.70.0090.00517.30
8.1.60.0100.00417.49
8.1.50.0080.00717.37
8.1.40.0100.00617.48
8.1.30.0110.00517.45
8.1.20.0120.00417.46
8.1.10.0110.00517.35
8.1.00.0100.00617.31
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0090.00517.16
8.0.270.0110.00516.61
8.0.260.0080.00517.49
8.0.250.0070.00516.74
8.0.240.0070.00616.74
8.0.230.0090.00316.76
8.0.220.0090.00516.67
8.0.210.0110.00216.71
8.0.200.0070.00616.70
8.0.190.0110.00316.77
8.0.180.0120.00316.71
8.0.170.0070.00616.68
8.0.160.0060.00616.76
8.0.150.0050.00816.72
8.0.140.0110.00416.69
8.0.130.0040.00715.81
8.0.120.0080.00516.71
8.0.110.0070.00616.62
8.0.100.0080.00516.66
8.0.90.0110.00216.65
8.0.80.0090.00816.69
8.0.70.0090.00516.65
8.0.60.0070.00516.67
8.0.50.0060.00717.07
8.0.30.0080.00716.73
8.0.20.0070.00916.88
8.0.10.0120.00616.81
8.0.00.0090.00716.89
7.4.330.0100.00415.53
7.4.320.0070.00816.47
7.4.300.0080.00516.43
7.4.290.0080.00416.49
7.4.280.0110.00516.45
7.4.270.0100.00416.48
7.4.260.0100.00515.66
7.4.250.0100.00516.49
7.4.240.0100.00516.51
7.4.230.0140.00116.53
7.4.220.0080.00416.46
7.4.210.0090.00616.54
7.4.200.0090.00516.47
7.4.190.0110.00516.50
7.4.180.0070.00916.53
7.4.160.0110.00416.48
7.4.150.0130.00516.41
7.4.140.0050.01116.34
7.4.130.0130.00416.30
7.4.120.0110.00616.66
7.4.110.0100.00616.39
7.4.100.0120.00516.39
7.4.90.0110.00616.38
7.4.80.0090.00816.36
7.4.70.0090.00816.27
7.4.60.0110.00516.26
7.4.50.0130.00516.30
7.4.40.0110.00716.33
7.4.30.0120.00716.33
7.4.20.0080.00816.35
7.4.10.0120.00516.37
7.4.00.0140.00416.39
7.3.330.0090.00416.27
7.3.320.0070.00515.55
7.3.310.0070.00516.23
7.3.300.0080.00516.31
7.3.290.0120.00516.27
7.3.280.0100.00616.25
7.3.270.0100.00616.40
7.3.260.0120.00516.42
7.3.250.0090.00716.30
7.3.240.0100.00616.41
7.3.230.0100.00616.24
7.3.220.0110.00716.25
7.3.210.0100.00616.30
7.3.200.0110.00616.34
7.3.190.0120.00616.27
7.3.180.0080.00916.34
7.3.170.0100.00816.28
7.3.160.0100.00716.26
7.3.150.0120.00516.25
7.3.140.0120.00516.35
7.3.130.0110.00516.30
7.3.120.0090.00716.32
7.3.110.0100.00616.24
7.3.100.0080.00816.31
7.3.90.0110.00816.34
7.3.80.0090.00816.28
7.3.70.0100.00716.32
7.3.60.0110.00516.34
7.3.50.0130.00316.30
7.3.40.0100.00716.29
7.3.30.0100.00816.27
7.3.20.0160.00617.13
7.3.10.0100.00717.11
7.3.00.0210.00617.08
7.2.340.0140.00616.36
7.2.330.0120.00816.44
7.2.320.0130.00616.65
7.2.310.0130.00616.44
7.2.300.0110.01016.31
7.2.290.0140.00516.29
7.2.280.0110.00816.38
7.2.270.0120.00716.27
7.2.260.0110.00816.35
7.2.250.0170.00316.38
7.2.240.0140.00516.35
7.2.230.0130.00716.28
7.2.220.0120.00816.41
7.2.210.0140.00616.32
7.2.200.0120.00916.38
7.2.190.0140.00616.38
7.2.180.0120.00816.36
7.2.170.0140.00816.37
7.2.160.0120.00816.34
7.2.150.0210.00817.27
7.2.140.0160.00717.22
7.2.130.0150.00617.17
7.2.120.0150.00717.17
7.2.110.0160.00617.32
7.2.100.0140.00717.28
7.2.90.0130.00817.22
7.2.80.0130.00817.21
7.2.70.0140.00617.23
7.2.60.0130.00617.13
7.2.50.0140.00717.24
7.2.40.0120.00817.14
7.2.30.0130.00717.16
7.2.20.0140.00517.19
7.2.10.0110.00617.15
7.2.00.0100.00717.27

preferences:
29.91 ms | 403 KiB | 5 Q