3v4l.org

run code in 300+ PHP versions simultaneously
<?php $color = array('white', 'green', 'red', 'blue', 'black'); echo '<ul><li>'.$color[0].'<\li><\ul>'; ?>

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.0100.01016.50
8.3.50.0070.00922.92
8.3.40.0100.00718.71
8.3.30.0100.00718.92
8.3.20.0040.00420.14
8.3.10.0080.00020.61
8.3.00.0080.00019.38
8.2.180.0110.01118.17
8.2.170.0120.00322.96
8.2.160.0090.00618.96
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0050.00221.00
8.2.110.0070.00321.00
8.2.100.0000.01218.16
8.2.90.0040.00419.17
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0080.00018.05
8.2.50.0040.00418.07
8.2.40.0000.00818.16
8.2.30.0050.00219.50
8.2.20.0050.00317.73
8.2.10.0050.00218.04
8.2.00.0000.00717.73
8.1.280.0070.01025.92
8.1.270.0030.00623.84
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00619.20
8.1.230.0080.00319.21
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0070.00317.25
8.1.190.0030.00517.35
8.1.180.0080.00018.10
8.1.170.0000.00918.46
8.1.160.0040.00421.88
8.1.150.0000.00718.79
8.1.140.0040.00417.49
8.1.130.0040.00417.86
8.1.120.0030.00517.36
8.1.110.0030.00517.50
8.1.100.0000.00717.41
8.1.90.0040.00417.33
8.1.80.0040.00417.38
8.1.70.0030.00317.38
8.1.60.0060.00317.57
8.1.50.0000.00817.56
8.1.40.0040.00417.38
8.1.30.0040.00417.54
8.1.20.0050.00317.64
8.1.10.0000.00817.61
8.1.00.0040.00417.53
8.0.300.0070.00018.77
8.0.290.0000.00816.63
8.0.280.0040.00418.43
8.0.270.0070.00017.16
8.0.260.0030.00317.16
8.0.250.0030.00316.96
8.0.240.0040.00416.81
8.0.230.0000.00716.96
8.0.220.0040.00416.75
8.0.210.0070.00016.82
8.0.200.0000.00617.01
8.0.190.0030.00316.98
8.0.180.0000.00716.82
8.0.170.0030.00516.92
8.0.160.0000.00716.82
8.0.150.0080.00016.87
8.0.140.0000.00716.86
8.0.130.0030.00313.35
8.0.120.0090.00016.74
8.0.110.0040.00416.91
8.0.100.0000.00716.76
8.0.90.0000.00816.95
8.0.80.0070.00916.86
8.0.70.0040.00416.78
8.0.60.0030.00316.67
8.0.50.0070.00016.70
8.0.30.0140.00517.04
8.0.20.0030.01717.40
8.0.10.0040.00416.77
8.0.00.0130.00616.86
7.4.330.0000.00515.00
7.4.320.0070.00016.43
7.4.300.0000.00616.53
7.4.290.0030.00316.41
7.4.280.0000.00716.51
7.4.270.0070.00016.32
7.4.260.0000.00716.41
7.4.250.0080.00016.46
7.4.240.0050.00216.49
7.4.230.0000.00716.61
7.4.220.0050.01516.57
7.4.210.0120.00316.42
7.4.200.0000.00716.51
7.4.160.0140.00716.41
7.4.150.0280.01717.40
7.4.140.0070.01017.86
7.4.130.0110.00616.45
7.4.120.0120.00516.41
7.4.110.0060.01516.55
7.4.100.0140.00316.31
7.4.90.0100.01016.57
7.4.80.0130.01019.39
7.4.70.0100.00716.35
7.4.60.0130.00316.28
7.4.50.0000.00916.68
7.4.40.0090.00916.54
7.4.30.0160.00016.54
7.4.00.0110.00714.86
7.3.330.0040.00413.13
7.3.320.0030.00313.09
7.3.310.0000.00716.13
7.3.300.0000.00716.25
7.3.290.0090.00616.18
7.3.280.0050.00916.24
7.3.270.0100.00717.40
7.3.260.0060.01116.48
7.3.250.0120.00516.34
7.3.240.0060.00916.34
7.3.230.0090.00916.39
7.3.210.0030.01316.30
7.3.200.0080.00819.39
7.3.190.0090.00616.50
7.3.180.0080.00816.30
7.3.170.0030.02016.38
7.3.160.0100.00616.54
7.2.330.0120.00616.46
7.2.320.0030.01316.66
7.2.310.0120.00616.57
7.2.300.0120.00616.71
7.2.290.0090.01216.52
7.2.00.0030.00919.36
7.1.100.0080.00318.04
7.1.70.0060.00917.23
7.1.60.0120.00319.61
7.1.50.0150.00616.85
7.1.00.0070.07322.36
7.0.200.0080.00016.42
7.0.140.0100.06322.01
7.0.60.0270.04320.00
7.0.50.0130.06017.77
7.0.40.0170.07720.40
7.0.30.0470.05020.13
7.0.20.0200.05720.17
7.0.10.0100.07020.20
7.0.00.0100.04020.18
5.6.280.0070.07020.91
5.6.210.0100.05720.51
5.6.200.0000.08718.19
5.6.190.0070.05020.40
5.6.180.0300.05320.43
5.6.170.0330.07020.50
5.6.160.0100.05020.54
5.6.150.0100.08018.11
5.6.140.0100.06718.12
5.6.130.0030.04718.22
5.6.120.0030.05020.90
5.6.110.0130.07721.03
5.6.100.0100.07721.04
5.6.90.0100.08720.93
5.6.80.0070.07320.50
5.5.350.0130.09020.31
5.5.340.0070.08318.02
5.5.330.0030.08720.23
5.5.320.0370.07320.21
5.5.310.0270.07020.30
5.5.300.0100.08317.97
5.5.290.0070.06717.94
5.5.280.0030.08720.86
5.5.270.0170.07320.85
5.5.260.0170.08720.86
5.5.250.0070.05020.54
5.5.240.0200.07320.23
5.4.450.0270.04319.48
5.4.440.0370.04019.13
5.4.430.0170.03719.41
5.4.420.0030.04319.58
5.4.410.0130.05019.44
5.4.400.0030.04019.13
5.4.390.0170.02018.93
5.4.380.0400.05018.76
5.4.370.0270.05018.64
5.4.360.0270.05018.51
5.4.350.0170.06018.51
5.4.340.0370.04718.49
5.4.320.0090.03912.45
5.4.310.0040.04012.45
5.4.300.0060.03612.45
5.4.290.0090.04412.45
5.4.280.0050.03912.34
5.4.270.0060.03512.35
5.4.260.0100.04312.35
5.4.250.0070.03612.34
5.4.240.0090.04412.35
5.4.230.0070.04312.34
5.4.220.0060.03912.34
5.4.210.0110.03312.34
5.4.200.0070.03912.34
5.4.190.0110.04512.34
5.4.180.0080.03412.34
5.4.170.0070.04512.34
5.4.160.0090.04012.34
5.4.150.0090.04412.34
5.4.140.0040.03912.02
5.4.130.0130.03412.01
5.4.120.0100.03611.96
5.4.110.0090.03411.96
5.4.100.0080.03811.96
5.4.90.0080.03811.96
5.4.80.0070.03911.96
5.4.70.0080.03611.96
5.4.60.0090.03611.96
5.4.50.0080.03211.96
5.4.40.0070.03311.95
5.4.30.0040.03611.95
5.4.20.0060.03511.95
5.4.10.0090.03411.95
5.4.00.0060.03911.44
5.3.290.0130.03712.80
5.3.280.0120.04612.71
5.3.270.0090.04012.73
5.3.260.0090.04112.72
5.3.250.0090.04512.72
5.3.240.0110.03912.72
5.3.230.0080.04412.71
5.3.220.0060.03912.68
5.3.210.0060.04312.68
5.3.200.0110.04312.68
5.3.190.0090.04312.68
5.3.180.0120.03512.67
5.3.170.0070.04912.67
5.3.160.0080.03812.67
5.3.150.0080.03812.67
5.3.140.0070.03512.66
5.3.130.0100.04312.66
5.3.120.0090.03912.66
5.3.110.0050.04912.66
5.3.100.0090.04512.11
5.3.90.0070.04012.08
5.3.80.0060.03712.07
5.3.70.0100.04212.08
5.3.60.0080.04112.07
5.3.50.0080.03812.00
5.3.40.0070.04512.00
5.3.30.0070.03411.94
5.3.20.0060.03511.72
5.3.10.0070.03411.69
5.3.00.0050.03811.68
5.2.170.0080.0349.18
5.2.160.0050.0359.18
5.2.150.0080.0389.18
5.2.140.0100.0269.18
5.2.130.0070.0329.13
5.2.120.0040.0299.14
5.2.110.0100.0349.14
5.2.100.0030.0299.14
5.2.90.0060.0309.14
5.2.80.0100.0329.13
5.2.70.0060.0349.14
5.2.60.0070.0329.09
5.2.50.0050.0319.06
5.2.40.0040.0399.04
5.2.30.0050.0309.01
5.2.20.0040.0348.99
5.2.10.0010.0388.91
5.2.00.0090.0348.78
5.1.60.0070.0278.06
5.1.50.0060.0288.05
5.1.40.0080.0238.04
5.1.30.0060.0248.39
5.1.20.0060.0338.41
5.1.10.0030.0268.13
5.1.00.0060.0238.13
5.0.50.0030.0216.62
5.0.40.0040.0186.47
5.0.30.0030.0316.28
5.0.20.0040.0196.25
5.0.10.0010.0216.23
5.0.00.0050.0326.22
4.4.90.0040.0154.78
4.4.80.0060.0164.75
4.4.70.0050.0154.75
4.4.60.0060.0204.75
4.4.50.0050.0204.77
4.4.40.0040.0324.71
4.4.30.0040.0204.75
4.4.20.0040.0214.85
4.4.10.0030.0234.85
4.4.00.0050.0314.76
4.3.110.0040.0164.67
4.3.100.0020.0194.66
4.3.90.0020.0184.64
4.3.80.0030.0254.58
4.3.70.0050.0134.63
4.3.60.0020.0164.62
4.3.50.0080.0194.63
4.3.40.0030.0334.54
4.3.30.0010.0193.28
4.3.20.0030.0163.25
4.3.10.0010.0183.21
4.3.00.0000.01718.16

preferences:
36.45 ms | 401 KiB | 5 Q