3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export(call_user_func_array("array_shift", (array("Test #1")))); echo "\n"; $arg1 = array("Test #2"); var_export(call_user_func_array("array_shift", array($arg1))); echo "\n"; $args = array(array("Test #3")); var_export(call_user_func_array("array_shift", $args)); echo "\n";

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.0120.00916.63
8.3.50.0140.00421.80
8.3.40.0180.00318.71
8.3.30.0040.01118.70
8.3.20.0040.00420.21
8.3.10.0070.00023.53
8.3.00.0050.00319.64
8.2.180.0070.01116.50
8.2.170.0070.00722.96
8.2.160.0040.00920.53
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00419.38
8.2.120.0080.00026.35
8.2.110.0000.00819.19
8.2.100.0000.01118.04
8.2.90.0030.00519.22
8.2.80.0000.00817.97
8.2.70.0030.00717.50
8.2.60.0000.00917.80
8.2.50.0090.00018.07
8.2.40.0060.00321.07
8.2.30.0030.00520.46
8.2.20.0000.00717.66
8.2.10.0050.00218.04
8.2.00.0040.00418.04
8.1.280.0070.00725.92
8.1.270.0110.00420.21
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0060.00319.14
8.1.230.0030.00817.63
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0000.00816.99
8.1.180.0020.00518.10
8.1.170.0080.00018.55
8.1.160.0070.00020.63
8.1.150.0080.00018.75
8.1.140.0000.00819.45
8.1.130.0090.00017.57
8.1.120.0080.00017.22
8.1.110.0000.00817.31
8.1.100.0040.00417.29
8.1.90.0040.00417.16
8.1.80.0000.00817.39
8.1.70.0000.00717.27
8.1.60.0040.00417.39
8.1.50.0050.00317.50
8.1.40.0000.00717.47
8.1.30.0080.00017.47
8.1.20.0000.00717.61
8.1.10.0040.00417.54
8.1.00.0000.00817.34
8.0.300.0000.00818.77
8.0.290.0060.00316.63
8.0.280.0000.00718.31
8.0.270.0070.00017.22
8.0.260.0060.00017.23
8.0.250.0030.00316.98
8.0.240.0070.00016.86
8.0.230.0090.00016.96
8.0.220.0040.00416.88
8.0.210.0030.00316.90
8.0.200.0000.00616.87
8.0.190.0000.00917.00
8.0.180.0040.00416.81
8.0.170.0000.00716.88
8.0.160.0000.00716.77
8.0.150.0000.00816.75
8.0.140.0000.00816.76
8.0.130.0040.00413.33
8.0.120.0080.00016.74
8.0.110.0000.00716.75
8.0.100.0050.00316.73
8.0.90.0030.00416.84
8.0.80.0100.00716.89
8.0.70.0090.00016.76
8.0.60.0070.00016.66
8.0.50.0050.00316.76
8.0.30.0100.00817.08
8.0.20.0100.01117.40
8.0.10.0000.00716.87
8.0.00.0130.00616.66
7.4.330.0050.00016.79
7.4.320.0060.00016.50
7.4.300.0060.00016.50
7.4.290.0040.00416.49
7.4.280.0040.00416.61
7.4.270.0030.00316.48
7.4.260.0020.00516.57
7.4.250.0030.00616.46
7.4.240.0040.00316.46
7.4.230.0030.00316.60
7.4.220.0130.00716.51
7.4.210.0060.00916.68
7.4.200.0030.00316.24
7.4.160.0060.00916.47
7.4.150.0130.00417.40
7.4.140.0070.01517.86
7.4.130.0070.01316.53
7.4.120.0060.01216.58
7.4.110.0140.00316.57
7.4.100.0150.00316.58
7.4.90.0000.01716.45
7.4.80.0190.00819.39
7.4.70.0030.01616.53
7.4.60.0080.01216.59
7.4.50.0170.00016.43
7.4.40.0040.01216.34
7.4.30.0160.00616.30
7.4.10.0120.00314.91
7.4.00.0090.00914.96
7.3.330.0080.00013.22
7.3.320.0000.00513.11
7.3.310.0070.00016.35
7.3.300.0040.00416.15
7.3.290.0050.01116.21
7.3.280.0070.00916.26
7.3.270.0100.00717.40
7.3.260.0070.01016.34
7.3.250.0110.00816.28
7.3.240.0040.01316.41
7.3.230.0070.01116.39
7.3.210.0150.00716.32
7.3.200.0080.00816.23
7.3.190.0070.01116.21
7.3.180.0120.00416.32
7.3.170.0140.00316.38
7.3.160.0040.01116.49
7.3.130.0040.01114.65
7.3.120.0050.01214.89
7.3.110.0050.01314.81
7.3.100.0070.00914.61
7.3.90.0050.00814.82
7.3.80.0030.00614.78
7.3.70.0120.00314.72
7.3.60.0050.00714.79
7.3.50.0030.01014.82
7.3.40.0050.01014.73
7.3.30.0040.01314.57
7.3.20.0060.00716.74
7.3.10.0070.00916.48
7.3.00.0030.01216.47
7.2.330.0090.00916.79
7.2.320.0070.01116.43
7.2.310.0140.00316.38
7.2.300.0070.01516.61
7.2.290.0070.01016.39
7.2.260.0070.01015.15
7.2.250.0090.00515.12
7.2.240.0120.00515.05
7.2.230.0070.00915.20
7.2.220.0050.01314.96
7.2.210.0100.00614.83
7.2.200.0030.01115.04
7.2.190.0100.00414.97
7.2.180.0070.00814.97
7.2.170.0040.01114.84
7.2.160.0060.00914.94
7.2.150.0030.01216.79
7.2.140.0070.00916.73
7.2.130.0090.00516.87
7.2.120.0060.00616.71
7.2.110.0030.01016.77
7.2.100.0100.00416.91
7.2.90.0050.01016.79
7.2.80.0060.00916.66
7.2.70.0050.00816.79
7.2.60.0050.00816.87
7.2.50.0050.00816.80
7.2.40.0070.00816.96
7.2.30.0050.00516.90
7.2.20.0050.00916.79
7.2.10.0040.00716.78
7.2.00.0080.00717.72
7.1.330.0050.01015.73
7.1.320.0070.00815.63
7.1.310.0020.01115.68
7.1.300.0040.01115.56
7.1.290.0070.00715.66
7.1.280.0080.00615.79
7.1.270.0000.01415.78
7.1.260.0110.00415.69
7.1.250.0100.00515.70
7.1.240.0040.01015.85
7.1.230.0060.00715.74
7.1.220.0040.00915.60
7.1.210.0050.00815.73
7.1.200.0040.01115.63
7.1.190.0030.00915.52
7.1.180.0080.00615.56
7.1.170.0080.00615.49
7.1.160.0010.01115.77
7.1.150.0030.00915.76
7.1.140.0100.00615.68
7.1.130.0050.00615.73
7.1.120.0050.00815.58
7.1.110.0070.00715.72
7.1.100.0060.00616.42
7.1.90.0080.00715.48
7.1.80.0050.01115.81
7.1.70.0070.00716.21
7.1.60.0080.01016.81
7.1.50.0060.01116.09
7.1.40.0030.01515.72
7.1.30.0030.00815.73
7.1.20.0060.01015.31
7.1.10.0050.00715.75
7.1.00.0050.02917.91
7.0.330.0050.00715.39
7.0.320.0060.00315.17
7.0.310.0090.00715.22
7.0.300.0030.01215.33
7.0.290.0080.00815.30
7.0.280.0060.00915.40
7.0.270.0050.00815.44
7.0.260.0030.00715.36
7.0.250.0050.00815.53
7.0.240.0070.00715.33
7.0.230.0040.00915.31
7.0.220.0070.00615.24
7.0.210.0070.00715.25
7.0.200.0520.00514.92
7.0.190.0070.00715.43
7.0.180.0040.01115.43
7.0.170.0070.00815.22
7.0.160.0040.01015.35
7.0.150.0050.00715.24
7.0.140.0040.01115.25
7.0.130.0010.00915.27
7.0.120.0020.01115.43
7.0.110.0020.01015.32
7.0.100.0090.00115.28
7.0.90.0050.00515.37
7.0.80.0050.00715.33
7.0.70.0030.00815.41
7.0.60.0040.02516.92
7.0.50.0040.01916.15
7.0.40.0050.02015.60
7.0.30.0190.01815.64
7.0.20.0140.02015.62
7.0.10.0060.03515.66
7.0.00.0030.02015.60
5.6.400.0050.01014.23
5.6.390.0050.00914.30
5.6.380.0060.00814.25
5.6.370.0040.00914.50
5.6.360.0060.01014.34
5.6.350.0030.00814.28
5.6.340.0040.00714.36
5.6.330.0080.00514.31
5.6.320.0070.00314.28
5.6.310.0000.01114.21
5.6.300.0080.00414.30
5.6.290.0070.01114.33
5.6.280.0020.02716.49
5.6.270.0040.00614.23
5.6.260.0020.00914.17
5.6.250.0100.00414.24
5.6.240.0070.00714.20
5.6.230.0040.00814.26
5.6.220.0090.00614.44
5.6.210.0070.01716.36
5.6.200.0060.01715.51
5.6.190.0060.03216.26
5.6.180.0120.02116.09
5.6.170.0080.02016.39
5.6.160.0040.02016.33
5.6.150.0050.03215.47
5.6.140.0060.02115.58
5.6.130.0060.01915.48
5.6.120.0050.01916.51
5.6.110.0040.02816.62
5.6.100.0040.02216.44
5.6.90.0090.03116.46
5.6.80.0100.02716.29
5.6.70.0030.00814.17
5.6.60.0040.00414.23
5.6.50.0100.00614.16
5.6.40.0060.00713.94
5.6.30.0070.00714.19
5.6.20.0000.01014.05
5.6.10.0080.00814.18
5.6.00.0070.00414.11
5.5.380.0040.00813.82
5.5.370.0050.00514.13
5.5.360.0060.00214.30
5.5.350.0070.03316.18
5.5.340.0060.03015.41
5.5.330.0060.02216.19
5.5.320.0120.02116.34
5.5.310.0080.02216.31
5.5.300.0080.02615.36
5.5.290.0070.02015.46
5.5.280.0050.02916.49
5.5.270.0070.03216.47
5.5.260.0030.03816.48
5.5.250.0030.03116.18
5.5.240.0120.01716.08
5.5.230.0030.01114.10
5.5.220.0020.01214.21
5.5.210.0060.00714.04
5.5.200.0070.00714.09
5.5.190.0090.00413.93
5.5.180.0080.00313.89
5.5.170.0020.01214.05
5.5.160.0020.00913.96
5.5.150.0050.00614.12
5.5.140.0050.00614.25
5.5.130.0080.00214.07
5.5.120.0050.00814.07
5.5.110.0030.01114.21
5.5.100.0050.01014.12
5.5.90.0050.01014.06
5.5.80.0050.00614.15
5.5.70.0060.00914.09
5.5.60.0090.00614.20
5.5.50.0090.00513.86
5.5.40.0050.00513.86
5.5.30.0030.01114.13
5.5.20.0030.00914.04
5.5.10.0030.01014.06
5.5.00.0070.00714.10

preferences:
32.04 ms | 401 KiB | 5 Q