3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export(call_user_func_array("array_shift", array(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.0150.00616.38
8.3.50.0100.00522.00
8.3.40.0150.00618.84
8.3.30.0070.00718.83
8.3.20.0040.00420.24
8.3.10.0030.00623.53
8.3.00.0040.00419.85
8.2.180.0110.00716.50
8.2.170.0080.00822.96
8.2.160.0080.00520.36
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0050.00319.27
8.2.120.0050.00326.35
8.2.110.0150.00620.93
8.2.100.0090.00317.68
8.2.90.0000.00719.34
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0060.00317.80
8.2.50.0090.00018.07
8.2.40.0050.00519.46
8.2.30.0000.00820.51
8.2.20.0040.00417.62
8.2.10.0000.00717.98
8.2.00.0030.00517.96
8.1.280.0100.01025.92
8.1.270.0110.00420.18
8.1.260.0070.00028.09
8.1.250.0000.00728.09
8.1.240.0060.00323.84
8.1.230.0060.00617.70
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0090.00017.48
8.1.190.0080.00017.24
8.1.180.0060.00318.10
8.1.170.0030.00518.63
8.1.160.0040.00420.67
8.1.150.0000.00718.79
8.1.140.0080.00019.58
8.1.130.0000.00917.60
8.1.120.0030.00317.49
8.1.110.0000.00717.45
8.1.100.0000.00817.43
8.1.90.0000.00817.34
8.1.80.0000.00817.31
8.1.70.0030.00317.31
8.1.60.0000.00817.54
8.1.50.0030.00617.52
8.1.40.0050.00317.40
8.1.30.0050.00317.56
8.1.20.0000.00717.58
8.1.10.0070.00017.48
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.31
8.0.270.0020.00517.32
8.0.260.0030.00317.36
8.0.250.0030.00317.01
8.0.240.0000.00716.88
8.0.230.0030.00617.03
8.0.220.0040.00416.97
8.0.210.0040.00416.79
8.0.200.0030.00316.98
8.0.190.0050.00217.05
8.0.180.0000.00717.02
8.0.170.0070.00016.95
8.0.160.0040.00416.90
8.0.150.0040.00416.93
8.0.140.0070.00016.93
8.0.130.0060.00013.36
8.0.120.0050.00316.93
8.0.110.0030.00516.86
8.0.100.0000.00816.80
8.0.90.0000.00716.82
8.0.80.0070.00716.90
8.0.70.0040.00416.81
8.0.60.0000.00716.99
8.0.50.0000.00716.84
8.0.30.0060.00917.08
8.0.20.0110.00917.40
8.0.10.0000.00717.16
8.0.00.0100.00816.98
7.4.330.0000.00516.90
7.4.320.0030.00316.40
7.4.300.0060.00016.62
7.4.290.0070.00316.41
7.4.280.0040.00416.57
7.4.270.0070.00016.59
7.4.260.0000.00716.50
7.4.250.0000.00716.54
7.4.240.0050.00216.46
7.4.230.0030.00316.59
7.4.220.0130.00616.45
7.4.210.0030.01216.57
7.4.200.0000.00716.59
7.4.160.0110.00416.70
7.4.150.0140.00617.40
7.4.140.0130.00617.86
7.4.130.0120.00716.52
7.4.120.0070.00916.53
7.4.110.0120.00616.45
7.4.100.0090.00916.59
7.4.90.0140.00416.54
7.4.80.0140.00319.39
7.4.70.0100.00716.56
7.4.60.0130.00316.51
7.4.50.0060.01016.43
7.4.40.0080.00816.45
7.4.30.0190.00616.63
7.4.10.0060.01315.21
7.4.00.0080.00715.00
7.3.330.0000.00713.10
7.3.320.0030.00213.15
7.3.310.0030.00316.19
7.3.300.0030.00316.11
7.3.290.0070.00816.24
7.3.280.0100.00716.27
7.3.270.0090.00917.40
7.3.260.0140.00216.27
7.3.250.0090.00816.31
7.3.240.0090.00816.35
7.3.230.0170.00716.39
7.3.210.0110.00716.34
7.3.200.0170.00516.37
7.3.190.0000.02016.42
7.3.180.0130.00316.51
7.3.170.0090.00916.44
7.3.160.0040.01116.39
7.3.130.0100.00714.93
7.3.120.0080.00814.73
7.3.110.0080.00914.72
7.3.100.0070.00614.84
7.3.90.0030.01214.79
7.3.80.0060.00614.61
7.3.70.0040.00914.78
7.3.60.0020.00814.63
7.3.50.0080.00414.62
7.3.40.0060.00614.68
7.3.30.0060.00614.81
7.3.20.0030.00816.63
7.3.10.0060.00916.69
7.3.00.0070.00716.69
7.2.330.0140.01016.47
7.2.320.0080.00816.64
7.2.310.0070.01416.46
7.2.300.0070.01016.69
7.2.290.0030.01316.71
7.2.260.0030.01015.03
7.2.250.0070.01014.80
7.2.240.0110.00514.71
7.2.230.0070.00814.92
7.2.220.0080.00814.97
7.2.210.0050.00814.91
7.2.200.0060.00515.06
7.2.190.0090.00414.95
7.2.180.0060.00714.92
7.2.170.0020.01314.99
7.2.160.0060.00814.75
7.2.150.0030.00616.84
7.2.140.0070.01016.72
7.2.130.0080.00716.91
7.2.120.0080.00516.84
7.2.110.0070.00716.80
7.2.100.0080.00816.67
7.2.90.0080.00916.73
7.2.80.0070.00716.80
7.2.70.0080.00716.92
7.2.60.0080.00416.84
7.2.50.0040.00916.75
7.2.40.0060.00716.88
7.2.30.0030.00916.88
7.2.20.0060.00916.81
7.2.10.0050.00816.59
7.2.00.0050.00617.43
7.1.330.0070.00915.73
7.1.320.0050.01115.69
7.1.310.0060.00815.56
7.1.300.0060.00715.71
7.1.290.0030.00815.69
7.1.280.0040.00815.65
7.1.270.0030.01115.53
7.1.260.0050.00715.87
7.1.250.0040.00515.73
7.1.240.0030.01015.41
7.1.230.0090.00615.88
7.1.220.0060.00815.60
7.1.210.0040.00715.52
7.1.200.0060.00715.65
7.1.190.0030.00615.77
7.1.180.0070.00715.74
7.1.170.0050.00515.56
7.1.160.0000.00915.66
7.1.150.0030.00715.64
7.1.140.0060.00315.72
7.1.130.0030.00615.59
7.1.120.0040.00815.80
7.1.110.0030.00615.59
7.1.100.0050.00716.92
7.1.90.0000.01315.91
7.1.80.0080.00515.89
7.1.70.0050.00616.53
7.1.60.0070.01217.37
7.1.50.0050.01316.26
7.1.40.0080.00415.89
7.1.30.0040.00815.75
7.1.20.0070.00715.65
7.1.10.0000.01515.68
7.1.00.0020.04418.91
7.0.330.0040.00415.58
7.0.320.0070.00715.13
7.0.310.0080.00815.18
7.0.300.0040.00715.58
7.0.290.0070.00715.52
7.0.280.0030.00915.42
7.0.270.0030.00615.21
7.0.260.0070.00715.45
7.0.250.0030.01315.34
7.0.240.0030.00715.45
7.0.230.0030.00715.46
7.0.220.0080.00015.40
7.0.210.0000.00815.33
7.0.200.0230.00614.96
7.0.190.0030.01315.40
7.0.180.0040.00815.52
7.0.170.0060.00315.60
7.0.160.0060.00615.35
7.0.150.0100.00015.45
7.0.140.0070.00715.17
7.0.130.0070.01015.50
7.0.120.0060.00315.51
7.0.110.0040.00715.25
7.0.100.0070.00715.44
7.0.90.0060.00615.59
7.0.80.0070.00715.41
7.0.70.0030.01015.38
7.0.60.0080.04217.66
7.0.50.0070.02216.70
7.0.40.0050.04816.70
7.0.30.0170.04216.84
7.0.20.0190.04216.78
7.0.10.0050.02516.83
7.0.00.0090.02016.72
5.6.400.0150.00014.51
5.6.390.0000.01414.18
5.6.380.0090.00614.46
5.6.370.0030.00714.16
5.6.360.0060.00614.08
5.6.350.0100.00314.43
5.6.340.0140.00014.59
5.6.330.0070.00714.13
5.6.320.0030.00714.14
5.6.310.0030.01414.25
5.6.300.0080.00414.71
5.6.290.0060.00914.47
5.6.280.0050.03517.75
5.6.270.0120.00014.28
5.6.260.0070.00714.28
5.6.250.0060.00614.24
5.6.240.0040.01114.14
5.6.230.0120.00414.00
5.6.220.0090.00314.32
5.6.210.0000.03617.42
5.6.200.0070.04016.23
5.6.190.0030.05017.52
5.6.180.0150.04017.32
5.6.170.0100.02517.41
5.6.160.0050.02317.35
5.6.150.0120.03816.29
5.6.140.0070.04316.33
5.6.130.0050.02616.22
5.6.120.0130.04017.65
5.6.110.0030.04817.58
5.6.100.0060.02517.68
5.6.90.0030.03317.73
5.6.80.0090.03517.47
5.6.70.0030.00914.42
5.6.60.0100.00314.31
5.6.50.0060.00314.00
5.6.40.0030.00614.37
5.6.30.0030.01014.21
5.6.20.0000.01314.00
5.6.10.0160.00014.03
5.6.00.0030.01014.33
5.5.380.0040.00814.53
5.5.370.0110.00014.04
5.5.360.0030.00714.22
5.5.350.0080.04617.40
5.5.340.0090.03916.11
5.5.330.0080.04517.26
5.5.320.0190.03817.27
5.5.310.0120.03617.26
5.5.300.0030.03016.16
5.5.290.0120.04016.12
5.5.280.0080.04417.66
5.5.270.0090.04017.37
5.5.260.0070.04317.43
5.5.250.0050.04217.40
5.5.240.0100.01817.19
5.5.230.0000.01614.18
5.5.220.0000.01114.48
5.5.210.0000.01214.19
5.5.200.0050.00314.31
5.5.190.0030.00914.21
5.5.180.0150.00314.02
5.5.170.0060.01014.25
5.5.160.0030.01014.00
5.5.150.0030.00914.02
5.5.140.0030.00514.22
5.5.130.0080.00414.08
5.5.120.0000.01214.18
5.5.110.0040.01114.23
5.5.100.0110.00313.77
5.5.90.0040.01214.29
5.5.80.0140.00014.43
5.5.70.0030.01014.00
5.5.60.0060.00614.07
5.5.50.0040.01114.01
5.5.40.0110.00014.29
5.5.30.0090.00614.29
5.5.20.0030.00713.74
5.5.10.0110.00414.21
5.5.00.0080.00814.07

preferences:
53.71 ms | 401 KiB | 5 Q