3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myarr = [1,2,3,4,5,6,7]; $test = array_shift($myarr); echo $tes;

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.60.0070.00716.50
8.3.50.0090.01221.00
8.3.40.0110.00418.73
8.3.30.0180.00018.72
8.3.20.0070.00020.12
8.3.10.0030.00523.46
8.3.00.0070.00023.56
8.2.180.0040.01218.29
8.2.170.0070.00722.96
8.2.160.0090.00420.39
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0050.00519.77
8.2.120.0080.00026.35
8.2.110.0090.00020.94
8.2.100.0040.00717.93
8.2.90.0040.00419.05
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0040.00817.93
8.2.50.0030.00618.07
8.2.40.0050.00322.23
8.2.30.0030.00319.42
8.2.20.0000.00817.85
8.2.10.0100.00018.17
8.2.00.0040.00418.16
8.1.280.0110.01125.92
8.1.270.0080.01223.80
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00623.89
8.1.230.0090.00319.10
8.1.220.0040.00417.76
8.1.210.0060.00318.77
8.1.200.0060.00317.10
8.1.190.0000.00817.13
8.1.180.0000.00818.10
8.1.170.0050.00318.52
8.1.160.0040.00420.61
8.1.150.0070.00018.72
8.1.140.0000.00819.37
8.1.130.0000.00717.54
8.1.120.0000.00817.35
8.1.110.0000.00717.25
8.1.100.0000.00717.41
8.1.90.0000.00817.33
8.1.80.0040.00417.41
8.1.70.0030.00317.39
8.1.60.0080.00017.56
8.1.50.0040.00417.50
8.1.40.0040.00417.33
8.1.30.0000.00817.47
8.1.20.0000.00817.56
8.1.10.0050.00217.51
8.1.00.0070.00017.41
8.0.300.0040.00418.77
8.0.290.0000.00716.58
8.0.280.0050.00218.36
8.0.270.0050.00317.24
8.0.260.0080.00017.11
8.0.250.0000.00616.96
8.0.240.0030.00317.07
8.0.230.0030.00316.95
8.0.220.0070.00016.89
8.0.210.0070.00016.88
8.0.200.0030.00516.82
8.0.190.0040.00416.89
8.0.180.0060.00316.88
8.0.170.0000.00716.81
8.0.160.0000.00716.76
8.0.150.0000.00816.82
8.0.140.0040.00416.73
8.0.130.0040.00413.28
8.0.120.0000.00816.85
8.0.110.0070.00016.88
8.0.100.0040.00316.75
8.0.90.0040.00416.75
8.0.80.0100.00716.86
8.0.70.0040.00416.86
8.0.60.0020.00516.84
8.0.50.0000.00716.91
8.0.30.0120.00817.14
8.0.20.0110.00717.40
8.0.10.0050.00216.95
8.0.00.0120.00716.71
7.4.330.0000.00516.77
7.4.320.0030.00316.47
7.4.300.0050.00316.43
7.4.290.0030.00316.42
7.4.280.0030.00616.33
7.4.270.0030.00316.38
7.4.260.0030.00316.42
7.4.250.0000.00716.31
7.4.240.0020.00516.40
7.4.230.0000.00716.45
7.4.220.0000.02516.50
7.4.210.0090.00616.52
7.4.200.0000.00716.52
7.4.160.0030.01216.48
7.4.150.0060.01217.40
7.4.140.0180.00517.86
7.4.130.0120.00816.41
7.4.120.0140.00316.54
7.4.110.0130.01016.46
7.4.100.0070.01016.54
7.4.90.0100.00716.50
7.4.80.0060.01219.39
7.4.70.0130.00316.50
7.4.60.0110.00516.32
7.4.50.0000.01416.23
7.4.40.0030.01416.48
7.4.30.0130.00316.29
7.4.00.0140.00014.66
7.3.330.0020.00213.13
7.3.320.0030.00312.98
7.3.310.0040.00416.20
7.3.300.0030.00316.29
7.3.290.0070.00816.24
7.3.280.0090.00616.26
7.3.270.0090.00917.40
7.3.260.0030.01416.46
7.3.250.0130.00416.38
7.3.240.0080.00916.26
7.3.230.0120.00616.55
7.3.210.0140.00716.27
7.3.200.0000.01716.25
7.3.190.0030.01316.35
7.3.180.0040.01116.23
7.3.170.0100.00616.29
7.3.160.0090.00616.36
7.2.330.0100.00716.38
7.2.320.0060.01116.43
7.2.310.0000.01716.21
7.2.300.0110.01116.38
7.2.290.0090.01016.38
7.2.00.0030.00919.04
7.1.100.0030.00617.96
7.1.70.0050.00317.09
7.1.60.0140.01019.18
7.1.50.0070.00716.70
7.1.00.0100.07022.31
7.0.200.0070.00316.72
7.0.60.0270.06721.63
7.0.50.0070.08717.78
7.0.40.0000.04719.90
7.0.30.0270.04020.18
7.0.20.0330.07020.16
7.0.10.0070.05720.09
7.0.00.0000.04720.10
5.6.280.0030.06020.90
5.6.210.0070.04020.48
5.6.200.0030.06018.13
5.6.190.0030.05320.61
5.6.180.0470.06720.41
5.6.170.0270.07720.38
5.6.160.0070.04020.49
5.6.150.0030.04018.18
5.6.140.0130.07018.15
5.6.130.0100.04318.20
5.6.120.0170.05320.98
5.6.110.0100.08021.11
5.6.100.0030.04021.03
5.6.90.0100.05721.13
5.6.80.0170.06720.39
5.5.350.0130.05320.32
5.5.340.0030.08317.92
5.5.330.0130.05720.13
5.5.320.0330.06720.40
5.5.310.0230.03320.33
5.5.300.0070.08017.87
5.5.290.0070.04717.96
5.5.280.0100.05020.87
5.5.270.0070.08720.64
5.5.260.0070.08320.86
5.5.250.0000.05720.69
5.5.240.0130.06720.25

preferences:
56.03 ms | 401 KiB | 5 Q