3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(1,2,3,4,5); array_unshift($arr, array_pop($arr)); var_dump($arr);

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.4.20.0040.01617.82
8.4.10.0090.00017.51
8.3.140.0090.00016.68
8.3.130.0000.00816.29
8.3.120.0040.00418.75
8.3.110.0070.01020.94
8.3.100.0120.00316.66
8.3.90.0070.00726.77
8.3.80.0030.00616.35
8.3.70.0100.01018.40
8.3.60.0140.00416.63
8.3.50.0140.00621.08
8.3.40.0120.00318.61
8.3.30.0030.01218.55
8.3.20.0070.00020.27
8.3.10.0070.00023.66
8.3.00.0040.00419.52
8.2.260.0040.01420.33
8.2.250.0090.00616.80
8.2.240.0090.00618.67
8.2.230.0070.00022.58
8.2.220.0080.00024.06
8.2.210.0100.00326.77
8.2.200.0090.00016.50
8.2.190.0110.00416.58
8.2.180.0150.00025.92
8.2.170.0040.01118.77
8.2.160.0070.00720.51
8.2.150.0080.00625.66
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0080.00017.63
8.2.110.0030.00619.19
8.2.100.0060.00617.80
8.2.90.0050.00219.23
8.2.80.0000.01117.97
8.2.70.0040.00417.63
8.2.60.0060.00317.92
8.2.50.0040.00418.07
8.2.40.0060.00321.12
8.2.30.0000.00820.52
8.2.20.0000.00817.59
8.2.10.0000.00817.99
8.2.00.0030.00617.94
8.1.310.0040.00416.74
8.1.300.0060.01318.34
8.1.290.0000.00930.84
8.1.280.0110.00325.92
8.1.270.0060.00320.65
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0040.00419.39
8.1.230.0110.00017.66
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0000.00917.22
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00820.26
8.1.160.0050.00221.88
8.1.150.0040.00418.80
8.1.140.0080.00019.45
8.1.130.0070.00019.17
8.1.120.0040.00417.30
8.1.110.0040.00717.23
8.1.100.0040.00417.40
8.1.90.0040.00417.43
8.1.80.0070.00017.32
8.1.70.0030.00317.30
8.1.60.0030.00617.40
8.1.50.0050.00317.46
8.1.40.0000.00817.42
8.1.30.0000.00817.43
8.1.20.0000.00717.46
8.1.10.0050.00317.51
8.1.00.0040.00417.45
8.0.300.0060.00318.77
8.0.290.0000.00816.63
8.0.280.0030.00318.29
8.0.270.0000.00816.74
8.0.260.0030.00316.66
8.0.250.0050.00316.86
8.0.240.0050.00316.77
8.0.230.0080.00016.77
8.0.220.0030.00316.82
8.0.210.0030.00316.68
8.0.200.0030.00316.77
8.0.190.0000.00816.86
8.0.180.0080.00016.83
8.0.170.0000.00716.73
8.0.160.0040.00416.84
8.0.150.0000.00716.76
8.0.140.0050.00316.77
8.0.130.0030.00313.26
8.0.120.0090.00016.76
8.0.110.0040.00416.84
8.0.100.0030.00516.74
8.0.90.0060.00216.84
8.0.80.0040.00616.76
8.0.70.0040.00416.81
8.0.60.0010.00616.76
8.0.50.0040.00416.76
8.0.30.0060.00616.84
8.0.20.0090.00617.16
8.0.10.0010.00616.85
8.0.00.0080.00516.73
7.4.330.0000.00515.08
7.4.320.0030.00316.54
7.4.300.0030.00316.39
7.4.290.0000.00716.54
7.4.280.0030.00616.37
7.4.270.0030.00316.36
7.4.260.0030.00316.31
7.4.250.0000.00716.41
7.4.240.0020.00516.53
7.4.230.0030.00516.53
7.4.220.0060.00516.40
7.4.210.0080.00116.59
7.4.200.0020.00516.49
7.4.190.0010.00616.53
7.4.180.0030.00416.44
7.4.160.0060.00416.34
7.4.150.0050.00616.70
7.4.140.0060.00717.00
7.4.130.0060.00816.36
7.4.120.0080.00416.37
7.4.110.0060.00516.38
7.4.100.0060.00516.47
7.4.90.0070.00416.47
7.4.80.0080.00317.29
7.4.70.0050.00816.38
7.4.60.0080.00616.45
7.4.50.0040.00416.15
7.4.40.0030.00916.22
7.4.30.0050.00716.27
7.4.20.0000.00816.29
7.4.10.0070.00116.27
7.4.00.0040.00715.68
7.3.330.0020.00212.97
7.3.320.0050.00013.00
7.3.310.0000.00716.19
7.3.300.0030.00416.11
7.3.290.0090.00416.08
7.3.280.0060.00816.13
7.3.270.0080.00216.56
7.3.260.0050.00816.18
7.3.250.0080.00516.22
7.3.240.0050.00816.15
7.3.230.0040.00716.13
7.3.220.0020.00616.06
7.3.210.0060.00416.09
7.3.200.0040.00716.04
7.3.190.0070.00316.17
7.3.180.0060.00416.07
7.3.170.0080.00316.13
7.3.160.0060.00716.19
7.3.150.0020.00616.05
7.3.140.0030.00416.04
7.3.130.0050.00215.97
7.3.120.0030.00815.52
7.3.110.0050.00515.51
7.3.100.0060.00615.56
7.3.90.0070.00315.57
7.3.80.0040.00415.58
7.3.70.0070.00315.58
7.3.60.0060.00315.65
7.3.50.0060.00315.76
7.3.40.0020.00715.67
7.3.30.0050.00415.60
7.3.20.0040.00717.00
7.3.10.0110.00316.82
7.3.00.0050.00416.85
7.2.340.0040.00416.17
7.2.330.0060.00516.19
7.2.320.0060.00616.26
7.2.310.0060.00416.25
7.2.300.0040.00716.20
7.2.290.0060.00716.08
7.2.280.0010.00616.13
7.2.270.0000.00916.15
7.2.260.0030.00516.10
7.2.250.0060.00615.75
7.2.240.0050.00615.74
7.2.230.0030.00615.69
7.2.220.0030.00715.73
7.2.210.0050.00315.65
7.2.200.0060.00515.81
7.2.190.0020.00615.73
7.2.180.0010.00715.78
7.2.170.0040.00615.80
7.2.160.0040.00515.79
7.2.150.0050.00617.57
7.2.140.0060.00317.70
7.2.130.0040.00817.88
7.2.120.0060.00417.68
7.2.110.0050.00517.70
7.2.100.0060.00417.78
7.2.90.0060.00517.73
7.2.80.0020.00917.71
7.2.70.0070.00517.42
7.2.60.0050.00917.24
7.2.50.0050.00817.35
7.2.40.0060.00717.47
7.2.30.0050.00817.40
7.2.20.0040.00817.32
7.2.10.0040.00817.40
7.2.00.0030.00817.43
7.1.330.0050.00716.78
7.1.320.0040.00716.62
7.1.310.0080.00516.72
7.1.300.0060.00316.78
7.1.290.0040.00616.61
7.1.280.0040.00616.63
7.1.270.0080.00216.69
7.1.260.0040.00516.67
7.1.250.0050.00516.56
7.1.240.0050.00516.63
7.1.230.0050.00616.69
7.1.220.0070.00316.80
7.1.210.0050.00616.81
7.1.200.0070.00516.42
7.1.190.0040.00616.77
7.1.180.0030.00616.63
7.1.170.0110.00316.37
7.1.160.0070.00616.41
7.1.150.0070.00616.42
7.1.140.0050.00816.40
7.1.130.0060.00616.40
7.1.120.0050.00516.45
7.1.110.0040.00816.37
7.1.100.0040.00616.38
7.1.90.0080.00516.47
7.1.80.0090.00316.47
7.1.70.0050.00616.47
7.1.60.0100.00620.24
7.1.50.0100.00620.03
7.1.40.0070.00920.06
7.1.30.0070.00820.04
7.1.20.0070.01020.11
7.1.10.0040.00816.41
7.1.00.0040.00616.48
7.0.330.0040.00516.25
7.0.320.0080.00316.32
7.0.310.0030.00516.21
7.0.300.0060.00515.95
7.0.290.0060.00716.02
7.0.280.0040.00416.28
7.0.270.0090.00216.00
7.0.260.0050.00816.02
7.0.250.0080.00516.06
7.0.240.0060.00616.16
7.0.230.0080.00616.19
7.0.220.0070.00716.06
7.0.210.0100.00416.02
7.0.200.0060.00516.20
7.0.190.0090.00416.16
7.0.180.0080.00416.17
7.0.170.0050.00716.18
7.0.160.0060.00616.20
7.0.150.0070.00316.10
7.0.140.0040.00816.12
7.0.130.0070.00516.26
7.0.120.0070.00316.25
7.0.110.0050.00716.14
7.0.100.0060.00716.14
7.0.90.0080.00516.07
7.0.80.0060.00616.07
7.0.70.0040.00616.14
7.0.60.0040.00816.14
7.0.50.0060.00516.13
7.0.40.0040.00715.77
7.0.30.0050.00615.78
7.0.20.0070.00515.75
7.0.10.0070.00615.73
7.0.00.0060.00615.73
5.6.400.0060.00515.33
5.6.390.0050.00415.18
5.6.380.0040.00615.12
5.6.370.0050.00315.20
5.6.360.0050.00515.12
5.6.350.0040.00515.19
5.6.340.0040.00515.11
5.6.330.0050.00315.15
5.6.320.0050.00515.10
5.6.310.0050.00415.30
5.6.300.0040.01415.86
5.6.290.0060.01315.99
5.6.280.0080.01216.00
5.6.270.0050.01416.12
5.6.260.0060.01516.20
5.6.250.0040.01516.20
5.6.240.0060.01416.09
5.6.230.0050.01316.13
5.6.220.0070.01316.08
5.6.210.0070.01216.11
5.6.200.0090.01116.15
5.6.190.0090.01316.17
5.6.180.0070.01316.14
5.6.170.0070.01316.11
5.6.160.0040.01516.15
5.6.150.0060.01416.07
5.6.140.0080.01216.17
5.6.130.0100.01116.13
5.6.120.0050.01416.12
5.6.110.0040.02316.20
5.6.100.0070.01216.05
5.6.90.0040.01516.09
5.6.80.0070.01215.88
5.6.70.0050.01515.97
5.6.60.0080.01115.91
5.6.50.0050.01715.95
5.6.40.0060.01215.89
5.6.30.0070.01515.99
5.6.20.0060.01515.98
5.6.10.0030.01715.94
5.6.00.0060.01315.91
5.5.380.0050.01315.03
5.5.370.0060.01314.97
5.5.360.0060.02015.01
5.5.350.0040.01414.96
5.5.340.0050.01615.00
5.5.330.0070.01415.03
5.5.320.0070.01315.06
5.5.310.0070.01315.08
5.5.300.0070.01215.07
5.5.290.0060.01715.01
5.5.280.0060.02415.11
5.5.270.0040.01614.95
5.5.260.0040.01514.91
5.5.250.0070.01115.03
5.5.240.0080.01214.89
5.5.230.0090.01114.95
5.5.220.0060.01614.85
5.5.210.0050.02114.93
5.5.200.0070.01214.72
5.5.190.0080.01414.77
5.5.180.0100.01514.83
5.5.170.0040.00515.60
5.5.160.0080.01314.79
5.5.150.0070.01614.78
5.5.140.0050.01714.73
5.5.130.0060.01714.76
5.5.120.0060.01614.72
5.5.110.0190.01114.78
5.5.100.0060.01614.88
5.5.90.0060.01314.64
5.5.80.0050.01414.81
5.5.70.0040.01714.90
5.5.60.0060.01414.85
5.5.50.0060.01214.84
5.5.40.0060.01414.87
5.5.30.0030.01614.87
5.5.20.0040.02114.82
5.5.10.0060.02214.88
5.5.00.0080.01214.70
5.4.450.0060.02013.86
5.4.440.0040.02413.80
5.4.430.0070.02013.81
5.4.420.0040.01613.83
5.4.410.0040.01413.73
5.4.400.0070.01113.69
5.4.390.0050.01513.67
5.4.380.0040.01413.60
5.4.370.0050.01313.66
5.4.360.0080.02113.66
5.4.350.0070.01113.64
5.4.340.0060.01113.61
5.4.330.0070.00012.39
5.4.320.0080.01213.81
5.4.310.0030.01413.62
5.4.300.0080.02013.69
5.4.290.0040.01513.67
5.4.280.0060.01313.73
5.4.270.0050.01413.64
5.4.260.0110.01413.63
5.4.250.0070.01213.62
5.4.240.0050.01513.65
5.4.230.0050.01313.53
5.4.220.0040.01313.51
5.4.210.0040.01413.55
5.4.200.0060.01513.53
5.4.190.0060.01513.50
5.4.180.0060.01513.51
5.4.170.0070.01313.59
5.4.160.0060.01413.56
5.4.150.0050.01313.55
5.4.140.0060.01113.19
5.4.130.0050.01613.03
5.4.120.0050.01613.07
5.4.110.0060.01213.05
5.4.100.0030.01513.07
5.4.90.0030.01413.07
5.4.80.0040.01713.13
5.4.70.0060.01213.11
5.4.60.0060.01213.06
5.4.50.0070.01013.09
5.4.40.0020.01613.10
5.4.30.0050.01213.03
5.4.20.0070.01113.10
5.4.10.0060.01513.11
5.4.00.0040.01212.97

preferences:
29.06 ms | 403 KiB | 5 Q