3v4l.org

run code in 300+ PHP versions simultaneously
<?php $authors = array( “Steinbeck”, “Kafka”, “Tolkien”, “Dickens” ); echo array_unshift($authors, "Michal Faber", "Robert Harris"); "<br /> <br />";

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.00318.51
8.3.50.0160.00523.00
8.3.40.0110.00718.76
8.3.30.0100.00319.14
8.3.20.0000.00720.29
8.3.10.0080.00020.51
8.3.00.0080.00019.26
8.2.180.0130.00318.63
8.2.170.0140.00322.96
8.2.160.0150.00020.52
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0060.00321.11
8.2.110.0030.00621.06
8.2.100.0070.00417.71
8.2.90.0060.00319.70
8.2.80.0040.00417.63
8.2.70.0040.00417.50
8.2.60.0060.00618.04
8.2.50.0080.00018.07
8.2.40.0090.00019.94
8.2.30.0000.00717.92
8.2.20.0040.00417.80
8.2.10.0070.00017.97
8.2.00.0000.00717.69
8.1.280.0120.00625.92
8.1.270.0030.00620.49
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00322.59
8.1.230.0000.01220.72
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0030.00517.35
8.1.180.0000.00722.20
8.1.170.0030.00618.96
8.1.160.0000.00818.91
8.1.150.0030.00318.86
8.1.140.0000.00717.30
8.1.130.0030.00317.76
8.1.120.0000.00717.29
8.1.110.0000.00817.38
8.1.100.0070.00017.38
8.1.90.0040.00417.45
8.1.80.0070.00017.38
8.1.70.0030.00317.28
8.1.60.0080.00017.41
8.1.50.0040.00417.44
8.1.40.0050.00217.47
8.1.30.0040.00417.50
8.1.20.0060.00317.59
8.1.10.0040.00417.54
8.1.00.0070.00017.37
8.0.300.0050.00319.86
8.0.290.0000.00716.75
8.0.280.0030.00318.40
8.0.270.0000.00717.26
8.0.260.0060.00017.25
8.0.250.0070.00017.01
8.0.240.0040.00416.94
8.0.230.0000.00916.92
8.0.220.0030.00317.02
8.0.210.0000.00716.84
8.0.200.0070.00016.91
8.0.190.0000.00916.98
8.0.180.0000.00816.95
8.0.170.0050.00216.86
8.0.160.0030.00316.98
8.0.150.0000.00716.98
8.0.140.0000.00716.93
8.0.130.0000.00513.34
8.0.120.0000.00716.83
8.0.110.0060.00316.93
8.0.100.0000.00716.82
8.0.90.0050.00216.75
8.0.80.0100.00416.89
8.0.70.0040.00416.85
8.0.60.0050.00317.04
8.0.50.0000.00716.81
8.0.30.0100.00817.14
8.0.20.0170.00517.40
8.0.10.0000.00717.06
8.0.00.0130.00716.75
7.4.330.0020.00215.08
7.4.320.0030.00316.61
7.4.300.0030.00316.55
7.4.290.0050.00216.50
7.4.280.0080.00016.54
7.4.270.0000.00716.39
7.4.260.0000.00716.48
7.4.250.0000.00816.33
7.4.240.0030.00516.47
7.4.230.0000.00716.50
7.4.220.0120.00616.52
7.4.210.0120.00316.46
7.4.200.0000.00716.38
7.4.160.0040.01216.71
7.4.150.0130.00417.40
7.4.140.0110.00717.86
7.4.130.0110.00916.43
7.4.120.0100.00816.43
7.4.110.0100.00616.34
7.4.100.0070.01116.32
7.4.90.0120.00616.48
7.4.80.0070.01416.53
7.4.70.0140.00416.60
7.4.60.0160.00016.39
7.4.50.0000.00916.63
7.4.40.0100.00616.45
7.4.30.0030.01316.43
7.4.00.0100.00315.20
7.3.330.0030.00313.02
7.3.320.0030.00313.14
7.3.310.0030.00316.30
7.3.300.0030.00316.33
7.3.290.0070.00816.26
7.3.280.0130.00616.28
7.3.270.0120.00617.40
7.3.260.0090.00916.47
7.3.250.0130.00716.35
7.3.240.0080.00816.29
7.3.230.0080.01116.39
7.3.210.0120.00616.32
7.3.200.0180.00319.39
7.3.190.0100.01016.47
7.3.180.0160.00016.32
7.3.170.0090.01316.34
7.3.160.0060.00916.25
7.3.10.0040.01116.57
7.3.00.0040.00716.72
7.2.330.0000.01816.41
7.2.320.0080.00816.46
7.2.310.0140.00816.73
7.2.300.0130.01016.57
7.2.290.0090.01216.57
7.2.130.0030.01016.88
7.2.120.0090.00016.57
7.2.110.0040.01216.93
7.2.100.0080.00516.75
7.2.90.0080.00816.68
7.2.80.0070.00816.98
7.2.70.0090.00316.86
7.2.60.0060.00616.71
7.2.50.0060.00616.65
7.2.40.0140.00016.91
7.2.30.0030.01016.82
7.2.20.0070.00717.00
7.2.10.0030.01016.82
7.2.00.0030.01318.09
7.1.250.0030.01015.73
7.1.200.0030.00715.35
7.1.100.0040.00817.76
7.1.70.0060.00616.77
7.1.60.0040.01419.18
7.1.50.0060.00616.60
7.1.00.0070.07322.35
7.0.200.0150.00314.55
7.0.140.0000.08022.08
7.0.60.0000.04319.88
7.0.50.0130.06017.87
7.0.40.0130.08720.21
7.0.30.0500.07320.18
7.0.20.0330.04320.09
7.0.10.0130.03320.00
7.0.00.0070.09020.09
5.6.280.0030.06721.01
5.6.210.0100.07020.70
5.6.200.0100.07318.23
5.6.190.0070.05020.46
5.6.180.0270.04020.54
5.6.170.0100.04720.40
5.6.160.0130.03320.47
5.6.150.0100.06018.11
5.6.140.0000.04018.18
5.6.130.0070.08718.21
5.6.120.0070.04721.11
5.6.110.0070.08021.00
5.6.100.0070.08320.95
5.6.90.0070.08021.06
5.6.80.0070.05320.39
5.6.70.0900.04720.52
5.5.350.0270.07320.36
5.5.340.0170.04718.02
5.5.330.0030.06020.19
5.5.320.0230.03320.32
5.5.310.0200.05720.41
5.5.300.0130.07717.95
5.5.290.0100.03317.96
5.5.280.0070.04320.79
5.5.270.0100.08720.86
5.5.260.0130.07320.75
5.5.250.0070.07320.70
5.5.240.0430.06020.07
5.4.450.0730.08019.41
5.4.440.0830.06019.44
5.4.430.0770.06719.27
5.4.420.0100.05319.46
5.4.410.0000.06319.35
5.4.400.0500.06318.81
5.4.390.0470.05018.74
5.4.380.0530.06718.46
5.4.370.0930.05318.59
5.4.360.1300.07318.70
5.4.350.0090.03311.97
5.4.340.0040.04211.97
5.4.320.0080.03612.45
5.4.310.0030.04212.45
5.4.300.0060.03712.46
5.4.290.0040.04012.45
5.4.280.0070.03812.35
5.4.270.0020.04012.34
5.4.260.0080.04212.34
5.4.250.0070.03912.34
5.4.240.0050.04012.34
5.4.230.0060.03912.34
5.4.220.0080.03612.34
5.4.210.0080.03512.34
5.4.200.0080.06012.33
5.4.190.0060.04112.34
5.4.180.0080.03912.33
5.4.170.0060.03912.34
5.4.160.0060.03712.34
5.4.150.0050.04212.34
5.4.140.0090.03512.02
5.4.130.0070.03412.01
5.4.120.0090.03411.96
5.4.110.0090.03411.96
5.4.100.0060.04611.96
5.4.90.0100.04211.96
5.4.80.0100.04811.97
5.4.70.0080.04011.96
5.4.60.0070.03811.96
5.4.50.0060.03911.96
5.4.40.0070.03711.95
5.4.30.0020.04211.95
5.4.20.0050.03911.95
5.4.10.0080.03611.95
5.4.00.0040.04111.43
5.3.290.0050.04612.80
5.3.280.0080.03912.71
5.3.270.0080.04112.72
5.3.260.0040.04412.72
5.3.250.0110.03612.72
5.3.240.0060.03912.72
5.3.230.0030.04412.70
5.3.220.0090.03912.68
5.3.210.0070.03812.68
5.3.200.0090.03512.68
5.3.190.0060.03912.68
5.3.180.0070.04012.67
5.3.170.0070.03812.67
5.3.160.0080.03512.67
5.3.150.0080.03712.68
5.3.140.0080.03812.66
5.3.130.0070.04712.66
5.3.120.0060.05312.66
5.3.110.0040.04312.66
5.3.100.0050.03912.12
5.3.90.0090.03412.08
5.3.80.0050.04112.08
5.3.70.0060.04112.07
5.3.60.0100.03612.07
5.3.50.0080.03612.00
5.3.40.0060.03612.00
5.3.30.0060.03511.95
5.3.20.0050.03511.72
5.3.10.0080.03411.69
5.3.00.0120.03611.68
5.2.170.0090.0389.18
5.2.160.0080.0469.18
5.2.150.0090.0399.18
5.2.140.0100.0379.17
5.2.130.0070.0389.13
5.2.120.0080.0279.13
5.2.110.0030.0339.14
5.2.100.0050.0379.14
5.2.90.0040.0329.14
5.2.80.0060.0379.13
5.2.70.0090.0269.13
5.2.60.0100.0289.08
5.2.50.0050.0329.05
5.2.40.0050.0359.03
5.2.30.0180.0399.01
5.2.20.0040.0319.00
5.2.10.0060.0328.94
5.2.00.0050.0328.79
5.1.60.0030.0298.08
5.1.50.0030.0298.07
5.1.40.0040.0268.06
5.1.30.0090.0248.41
5.1.20.0140.0348.43
5.1.10.0090.0338.15
5.1.00.0050.0288.15
5.0.50.0040.0236.63
5.0.40.0070.0206.48
5.0.30.0040.0316.30
5.0.20.0040.0196.27
5.0.10.0060.0266.24
5.0.00.0060.0316.23
4.4.90.0030.0164.78
4.4.80.0030.0184.75
4.4.70.0040.0174.75
4.4.60.0020.0174.75
4.4.50.0050.0144.77
4.4.40.0040.0244.71
4.4.30.0040.0174.76
4.4.20.0030.0174.84
4.4.10.0060.0164.85
4.4.00.0040.0284.76
4.3.110.0060.0134.66
4.3.100.0050.0154.66
4.3.90.0040.0144.64
4.3.80.0000.0284.59
4.3.70.0030.0204.63
4.3.60.0050.0184.63
4.3.50.0060.0184.63
4.3.40.0040.0314.54
4.3.30.0020.0223.29
4.3.20.0040.0193.27
4.3.10.0030.0163.23
4.3.00.0170.02010.99

preferences:
64 ms | 404 KiB | 6 Q