3v4l.org

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

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.40.0000.01418.73
8.3.30.0150.00018.95
8.3.20.0000.00720.22
8.3.10.0040.00423.43
8.3.00.0060.00320.90
8.2.170.0150.00622.96
8.2.160.0100.00320.55
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.01426.16
8.2.120.0080.00019.36
8.2.110.0080.00022.17
8.2.100.0050.00520.40
8.2.90.0000.00719.30
8.2.80.0000.00817.97
8.2.70.0050.00317.46
8.2.60.0080.00418.16
8.2.50.0000.00818.07
8.2.40.0000.01018.22
8.2.30.0080.00018.26
8.2.20.0080.00017.61
8.2.10.0000.00718.07
8.2.00.0050.00319.31
8.1.270.0040.00423.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.04
8.1.230.0030.00819.11
8.1.220.0050.00217.74
8.1.210.0000.00818.77
8.1.200.0030.00717.23
8.1.190.0030.00716.75
8.1.180.0000.00818.10
8.1.170.0000.00818.52
8.1.160.0090.00021.98
8.1.150.0050.00318.47
8.1.140.0050.00217.38
8.1.130.0030.00317.91
8.1.120.0040.00717.39
8.1.110.0050.00217.36
8.1.100.0050.00217.35
8.1.90.0070.00017.26
8.1.80.0000.00717.44
8.1.70.0090.00017.26
8.1.60.0040.00717.39
8.1.50.0040.00417.46
8.1.40.0040.00417.32
8.1.30.0050.00317.53
8.1.20.0050.00317.55
8.1.10.0040.00417.63
8.1.00.0040.00417.48
8.0.300.0000.00718.77
8.0.290.0040.00416.58
8.0.280.0030.00318.47
8.0.270.0000.00817.25
8.0.260.0060.00017.11
8.0.250.0040.00416.84
8.0.240.0030.00316.87
8.0.230.0070.00016.92
8.0.220.0030.00316.86
8.0.210.0000.00716.72
8.0.200.0030.00316.76
8.0.190.0040.00416.86
8.0.180.0050.00316.85
8.0.170.0000.00816.85
8.0.160.0040.00416.88
8.0.150.0050.00316.73
8.0.140.0040.00416.74
8.0.130.0030.00513.25
8.0.120.0060.00316.77
8.0.110.0040.00416.79
8.0.100.0040.00416.69
8.0.90.0000.00716.71
8.0.80.0090.01316.80
8.0.70.0030.00516.61
8.0.60.0070.00016.71
8.0.50.0080.00016.83
8.0.30.0120.00816.93
8.0.20.0050.01317.40
8.0.10.0030.00616.92
8.0.00.0080.01016.52
7.4.330.0050.00015.09
7.4.320.0030.00316.40
7.4.300.0070.00016.56
7.4.290.0000.00616.50
7.4.280.0070.00316.50
7.4.270.0030.00316.53
7.4.260.0030.00316.51
7.4.250.0000.00716.28
7.4.240.0000.00716.44
7.4.230.0000.00716.51
7.4.220.0100.00716.53
7.4.210.0080.00616.44
7.4.200.0000.00716.50
7.4.160.0090.01516.41
7.4.150.0100.00717.40
7.4.140.0090.01217.86
7.4.130.0100.00716.54
7.4.120.0110.00716.49
7.4.110.0130.00316.53
7.4.100.0100.00716.63
7.4.90.0030.01916.30
7.4.80.0140.01019.39
7.4.70.0080.00816.45
7.4.60.0060.00916.46
7.4.50.0040.00416.34
7.4.40.0110.00716.65
7.4.30.0130.00316.35
7.4.00.0050.01214.89
7.3.330.0030.00313.21
7.3.320.0000.00613.04
7.3.310.0070.00016.04
7.3.300.0030.00316.03
7.3.290.0070.00716.23
7.3.280.0110.01016.20
7.3.270.0130.00317.40
7.3.260.0070.01116.38
7.3.250.0140.00916.29
7.3.240.0150.00916.29
7.3.230.0070.01016.39
7.3.210.0120.00616.57
7.3.200.0060.01319.39
7.3.190.0120.00916.09
7.3.180.0090.00616.42
7.3.170.0060.00916.52
7.3.160.0080.00816.58
7.3.120.0090.00814.93
7.3.110.0070.01015.04
7.3.100.0000.01315.00
7.3.90.0100.01014.46
7.3.80.0060.00314.66
7.3.70.0120.00314.85
7.3.60.0030.00714.63
7.3.50.0090.00614.54
7.3.40.0000.01514.67
7.3.30.0040.00714.82
7.3.20.0000.01316.65
7.3.10.0100.00716.84
7.3.00.0070.01116.54
7.2.330.0180.00616.79
7.2.320.0130.00316.71
7.2.310.0030.01316.45
7.2.300.0060.01116.47
7.2.290.0030.01316.70
7.2.250.0140.00414.76
7.2.240.0100.01014.84
7.2.230.0040.00814.89
7.2.220.0000.01814.80
7.2.210.0040.01114.80
7.2.200.0000.01115.08
7.2.190.0070.01014.68
7.2.180.0060.01014.93
7.2.170.0100.00014.74
7.2.00.0060.00619.59
7.1.330.0030.01015.43
7.1.320.0040.00715.74
7.1.310.0070.01015.75
7.1.300.0070.00715.75
7.1.290.0030.01215.66
7.1.280.0000.01415.45
7.1.270.0030.01015.75
7.1.260.0030.01315.41
7.1.100.0060.00618.03
7.1.70.0000.01317.11
7.1.60.0100.01419.70
7.1.50.0080.01516.81
7.1.00.0070.07322.45
7.0.200.0040.00416.69
7.0.140.0100.06322.08
7.0.60.0030.06319.90
7.0.50.0100.07717.82
7.0.40.0070.07320.20
7.0.30.0330.06020.01
7.0.20.0170.05020.13
7.0.10.0100.06020.00
7.0.00.0070.05719.96
5.6.280.0100.06721.12
5.6.210.0100.07720.66
5.6.200.0100.08318.19
5.6.190.0100.03720.32
5.6.180.0000.05720.60
5.6.170.0300.06720.49
5.6.160.0030.08720.49
5.6.150.0070.08018.22
5.6.140.0130.07718.19
5.6.130.0100.03718.11
5.6.120.0070.09021.00
5.6.110.0100.03721.08
5.6.100.0070.06721.00
5.6.90.0100.08320.87
5.6.80.0070.05320.48
5.6.70.4500.03720.34
5.5.350.0100.06320.52
5.5.340.0070.07018.04
5.5.330.0130.07720.23
5.5.320.0030.07720.17
5.5.310.0330.05020.21
5.5.300.0030.07017.93
5.5.290.0070.08017.92
5.5.280.0100.08320.82
5.5.270.0100.08320.71
5.5.260.0030.04720.83
5.5.250.0170.06320.76
5.5.240.0030.07720.22
5.4.450.0230.04019.39
5.4.440.0400.04719.41
5.4.430.0270.04719.40
5.4.420.0730.04019.22
5.4.410.0270.04019.33
5.4.400.0470.04319.17
5.4.390.0230.05019.08
5.4.380.0100.05718.61
5.4.370.0170.05018.69
5.4.360.0100.05318.59
5.4.350.0100.05718.69
5.4.340.0100.05318.57
5.4.320.0040.04212.45
5.4.310.0040.03812.45
5.4.300.0060.04512.45
5.4.290.0060.03912.45
5.4.280.0030.03912.34
5.4.270.0090.03512.35
5.4.260.0120.04612.34
5.4.250.0100.04912.34
5.4.240.0080.04812.35
5.4.230.0110.04712.34
5.4.220.0110.04612.34
5.4.210.0100.04612.34
5.4.200.0100.04912.34
5.4.190.0060.04012.33
5.4.180.0050.03812.33
5.4.170.0130.03412.34
5.4.160.0140.03212.34
5.4.150.0080.03512.34
5.4.140.0040.04012.02
5.4.130.0080.04512.01
5.4.120.0080.04811.96
5.4.110.0110.04511.96
5.4.100.0070.04611.96
5.4.90.0070.05011.96
5.4.80.0100.04311.96
5.4.70.0080.03211.96
5.4.60.0070.03511.96
5.4.50.0040.03811.96
5.4.40.0090.04311.95
5.4.30.0060.03811.95
5.4.20.0080.03411.95
5.4.10.0080.03411.95
5.4.00.0070.03611.43
5.3.290.0080.03912.80
5.3.280.0090.03812.71
5.3.270.0040.04412.72
5.3.260.0090.03612.71
5.3.250.0060.03812.72
5.3.240.0060.03712.71
5.3.230.0060.03912.71
5.3.220.0050.03912.68
5.3.210.0070.03912.68
5.3.200.0060.03712.68
5.3.190.0050.04012.68
5.3.180.0070.04412.67
5.3.170.0100.03312.67
5.3.160.0050.03812.67
5.3.150.0060.04712.68
5.3.140.0100.03912.66
5.3.130.0070.04012.66
5.3.120.0050.03912.65
5.3.110.0110.03412.66
5.3.100.0070.03612.12
5.3.90.0040.03812.09
5.3.80.0090.03312.07
5.3.70.0080.03412.08
5.3.60.0040.03912.07
5.3.50.0040.03812.00
5.3.40.0080.03612.00
5.3.30.0040.03711.94
5.3.20.0050.03611.72
5.3.10.0110.03011.69
5.3.00.0060.03511.67
5.2.170.0050.0309.18
5.2.160.0050.0289.18
5.2.150.0050.0299.18
5.2.140.0050.0309.18
5.2.130.0070.0309.14
5.2.120.0030.0309.14
5.2.110.0040.0309.14
5.2.100.0020.0319.14
5.2.90.0050.0289.14
5.2.80.0030.0329.13
5.2.70.0060.0299.13
5.2.60.0060.0299.09
5.2.50.0030.0329.06
5.2.40.0050.0319.04
5.2.30.0040.0329.00
5.2.20.0050.0359.00
5.2.10.0050.0338.92
5.2.00.0030.0318.77
5.1.60.0050.0258.06
5.1.50.0050.0258.06
5.1.40.0040.0268.04
5.1.30.0070.0258.39
5.1.20.0040.0288.41
5.1.10.0050.0268.14
5.1.00.0070.0238.13
5.0.50.0040.0206.62
5.0.40.0040.0186.47
5.0.30.0030.0316.28
5.0.20.0030.0196.25
5.0.10.0070.0166.23
5.0.00.0060.0286.22
4.4.90.0030.0164.78
4.4.80.0040.0154.75
4.4.70.0050.0134.75
4.4.60.0040.0154.75
4.4.50.0010.0174.77
4.4.40.0020.0264.71
4.4.30.0030.0154.75
4.4.20.0050.0134.85
4.4.10.0030.0154.85
4.4.00.0040.0234.75
4.3.110.0040.0174.67
4.3.100.0030.0224.67
4.3.90.0020.0234.63
4.3.80.0040.0324.59
4.3.70.0030.0224.63
4.3.60.0020.0184.63
4.3.50.0020.0164.63
4.3.40.0030.0234.54
4.3.30.0020.0163.28
4.3.20.0020.0163.25
4.3.10.0040.0143.21
4.3.00.0030.01712.95

preferences:
41.91 ms | 400 KiB | 5 Q