3v4l.org

run code in 300+ PHP versions simultaneously
<?php $queue = array("orange", "banana"); array_unshift($queue, "apple", "raspberry"); print_r($queue);

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.70.0060.01616.50
8.3.60.0180.00016.63
8.3.50.0140.00521.92
8.3.40.0150.00318.45
8.3.30.0120.00318.59
8.3.20.0040.00421.73
8.3.10.0080.00021.54
8.3.00.0040.00419.26
8.2.180.0080.00816.50
8.2.170.0040.01122.96
8.2.160.0110.00720.49
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0070.00017.91
8.2.120.0020.00526.35
8.2.110.0070.00421.06
8.2.100.0060.00617.66
8.2.90.0000.00917.72
8.2.80.0000.00919.64
8.2.70.0040.00417.63
8.2.60.0000.00818.09
8.2.50.0000.00818.10
8.2.40.0070.00020.42
8.2.30.0080.00019.27
8.2.20.0040.00417.86
8.2.10.0000.00818.04
8.2.00.0040.00417.42
8.1.280.0140.00725.92
8.1.270.0080.00020.25
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.09
8.1.230.0110.00022.21
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00617.36
8.1.190.0040.00817.11
8.1.180.0050.00318.10
8.1.170.0040.00418.72
8.1.160.0040.00418.84
8.1.150.0070.00020.33
8.1.140.0000.00719.50
8.1.130.0000.00618.99
8.1.120.0030.00317.31
8.1.110.0000.00717.26
8.1.100.0040.00417.30
8.1.90.0040.00417.28
8.1.80.0000.00717.27
8.1.70.0000.00717.39
8.1.60.0030.00717.51
8.1.50.0000.00817.46
8.1.40.0040.00417.37
8.1.30.0040.00417.51
8.1.20.0000.00717.51
8.1.10.0030.00517.47
8.1.00.0060.00317.45
8.0.300.0030.00319.83
8.0.290.0000.00816.75
8.0.280.0040.00418.33
8.0.270.0030.00316.74
8.0.260.0030.00317.14
8.0.250.0040.00416.90
8.0.240.0040.00416.86
8.0.230.0030.00316.79
8.0.220.0030.00316.71
8.0.210.0000.00716.80
8.0.200.0030.00316.77
8.0.190.0040.00716.92
8.0.180.0080.00016.81
8.0.170.0070.00016.84
8.0.160.0050.00216.86
8.0.150.0030.00616.84
8.0.140.0040.00416.68
8.0.130.0000.00513.22
8.0.120.0000.00716.79
8.0.110.0040.00416.76
8.0.100.0040.00416.59
8.0.90.0050.00216.71
8.0.80.0090.00616.80
8.0.70.0070.00016.87
8.0.60.0070.00016.60
8.0.50.0040.00416.70
8.0.30.0080.01016.87
8.0.20.0110.00917.23
8.0.10.0120.00616.91
8.0.00.0060.01016.83
7.4.330.0060.00015.55
7.4.320.0040.00416.52
7.4.300.0030.00316.54
7.4.290.0000.00716.50
7.4.280.0040.00416.52
7.4.270.0030.00316.60
7.4.260.0050.00616.46
7.4.250.0040.00416.30
7.4.240.0070.00016.59
7.4.230.0030.00316.43
7.4.220.0140.00816.38
7.4.210.0140.00016.42
7.4.200.0040.00416.55
7.4.160.0120.00616.51
7.4.150.0100.00716.75
7.4.140.0050.01117.28
7.4.130.0070.01016.38
7.4.120.0060.01116.34
7.4.110.0040.01316.29
7.4.100.0090.00716.54
7.4.90.0080.00816.36
7.4.80.0060.01017.42
7.4.70.0050.01116.39
7.4.60.0050.01216.40
7.4.50.0070.01016.31
7.4.40.0100.00716.25
7.4.30.0080.00916.34
7.4.20.0040.01416.28
7.4.10.0100.00516.27
7.4.00.0060.00915.78
7.3.330.0030.00312.86
7.3.320.0050.00012.87
7.3.310.0040.00415.96
7.3.300.0070.00016.11
7.3.290.0090.00716.16
7.3.280.0080.00716.14
7.3.270.0120.00316.54
7.3.260.0080.00816.16
7.3.250.0090.00716.23
7.3.240.0130.00416.17
7.3.230.0070.00716.17
7.3.220.0070.00716.11
7.3.210.0090.00716.05
7.3.200.0080.00716.23
7.3.190.0090.00816.21
7.3.180.0120.00516.16
7.3.170.0060.00816.11
7.3.160.0090.00716.12
7.3.150.0080.00816.03
7.3.140.0050.01116.13
7.3.130.0060.01016.07
7.3.120.0090.00615.70
7.3.110.0100.00715.71
7.3.100.0110.00515.64
7.3.90.0070.01015.88
7.3.80.0100.00615.68
7.3.70.0120.00615.76
7.3.60.0070.00915.77
7.3.50.0100.00715.55
7.3.40.0100.00815.76
7.3.30.0050.01015.77
7.3.20.0100.00416.24
7.3.10.0070.01016.31
7.3.00.0090.00816.29
7.2.340.0130.00816.20
7.2.330.0100.01016.21
7.2.320.0090.01116.13
7.2.310.0110.00916.30
7.2.300.0130.00716.17
7.2.290.0110.00916.27
7.2.280.0100.01216.16
7.2.270.0160.00316.13
7.2.260.0100.01016.24
7.2.250.0090.01115.93
7.2.240.0110.00915.93
7.2.230.0090.01215.76
7.2.220.0110.00815.89
7.2.210.0070.01115.93
7.2.200.0090.00915.84
7.2.190.0130.00915.93
7.2.180.0080.01115.93
7.2.170.0100.01015.90
7.2.160.0140.00716.31
7.2.150.0130.00816.38
7.2.140.0170.00816.37
7.2.130.0130.00416.54
7.2.120.0110.00816.48
7.2.110.0100.01016.48
7.2.100.0110.00616.48
7.2.90.0120.00916.46
7.2.80.0080.01116.39
7.2.70.0110.00716.41
7.2.60.0100.01016.50
7.2.50.0110.00816.54
7.2.40.0120.00816.47
7.2.30.0110.00616.62
7.2.20.0100.00916.49
7.2.10.0110.00916.44
7.2.00.0110.00916.49
7.1.330.0110.00915.41
7.1.320.0090.00815.57
7.1.310.0090.01115.36
7.1.300.0100.00915.39
7.1.290.0090.01115.34
7.1.280.0110.00915.44
7.1.270.0110.00915.47
7.1.260.0110.01115.41
7.1.250.0150.01015.44
7.1.240.0130.00715.29
7.1.230.0110.00815.37
7.1.220.0250.00815.40
7.1.210.0140.00715.30
7.1.200.0140.00815.37
7.1.190.0130.00815.41
7.1.180.0110.00915.29
7.1.170.0140.00615.29
7.1.160.0100.01015.39
7.1.150.0120.00715.40
7.1.140.0090.01115.44
7.1.130.0140.00715.34
7.1.120.0100.00915.33
7.1.110.0130.00615.34
7.1.100.0080.01115.40
7.1.90.0100.01215.27
7.1.80.0090.01015.36
7.1.70.0130.00615.66
7.1.60.0080.01015.77
7.1.50.0110.00715.70
7.1.40.0100.01015.65
7.1.30.0090.01015.65
7.1.20.0110.00715.62
7.1.10.0100.00915.67
7.1.00.0110.00715.70
7.0.330.0150.00515.08
7.0.320.0120.00914.97
7.0.310.0170.00815.05
7.0.300.0320.00415.15
7.0.290.0170.00715.12
7.0.280.0170.00915.21
7.0.270.0120.00915.08
7.0.260.0160.00715.13
7.0.250.0140.00615.30
7.0.240.0160.00715.13
7.0.230.0210.00715.17
7.0.220.0190.00415.13
7.0.210.0200.00715.17
7.0.200.0130.00715.47
7.0.190.0140.00715.43
7.0.180.0270.00815.35
7.0.170.0130.00615.37
7.0.160.0130.00715.25
7.0.150.0240.00615.30
7.0.140.0130.00815.40
7.0.130.0150.00615.47
7.0.120.0140.00815.46
7.0.110.0130.01015.27
7.0.100.0100.00915.33
7.0.90.0150.01015.29
7.0.80.0070.01315.41
7.0.70.0130.00815.38
7.0.60.0160.00615.28
7.0.50.0150.00615.35
7.0.40.0110.00814.78
7.0.30.0100.00914.70
7.0.20.0100.00714.67
7.0.10.0130.00814.67
7.0.00.0090.00914.69
5.6.400.0160.01215.65
5.6.390.0190.01115.62
5.6.380.0060.01515.08
5.6.370.0140.01115.63
5.6.360.0140.01115.65
5.6.350.0170.00715.79
5.6.340.0170.01015.67
5.6.330.0140.01415.84
5.6.320.0140.01015.75
5.6.310.0170.01015.74
5.6.300.0160.01115.63
5.6.290.0130.01615.67
5.6.280.0240.00715.62
5.6.270.0200.01015.63
5.6.260.0180.00915.80
5.6.250.0220.01115.79
5.6.240.0190.00915.71
5.6.230.0240.00915.81
5.6.220.0160.01315.82
5.6.210.0150.01015.70
5.6.200.0130.01115.84
5.6.190.0170.01015.93
5.6.180.0210.00915.73
5.6.170.0140.01515.76
5.6.160.0140.01015.81
5.6.150.0140.01115.77
5.6.140.0200.01015.62
5.6.130.0130.01115.72
5.6.120.0120.01415.59
5.6.110.0160.01015.58
5.6.100.0120.01515.76
5.6.90.0160.01215.72
5.6.80.0170.01015.63
5.6.70.0130.01415.74
5.6.60.0140.01015.72
5.6.50.0190.01015.76
5.6.40.0130.01415.62
5.6.30.0160.00815.68
5.6.20.0160.00915.63
5.6.10.0270.01115.62
5.6.00.0080.01715.56

preferences:
57.8 ms | 401 KiB | 5 Q