3v4l.org

run code in 300+ PHP versions simultaneously
<?php $color = array('white', 'green', 'red', 'blue', 'black'); echo "The memory of that scene for me is like a frame of film forever frozen at that moment: the $color[2] carpet, the green lawn, the white house, the leaden sky. The new president and his first lady. - Richard M. Nixon";

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.0070.00716.50
8.3.50.0210.01021.96
8.3.40.0140.00718.66
8.3.30.0100.00318.95
8.3.20.0030.00520.29
8.3.10.0040.00423.66
8.3.00.0080.00019.18
8.2.180.0140.00418.29
8.2.170.0100.01022.96
8.2.160.0110.00720.39
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0030.00518.96
8.2.110.0030.00622.11
8.2.100.0110.00017.84
8.2.90.0000.00819.09
8.2.80.0060.00317.97
8.2.70.0030.00617.50
8.2.60.0080.00017.93
8.2.50.0080.00018.07
8.2.40.0000.00820.07
8.2.30.0070.00018.40
8.2.20.0000.00817.73
8.2.10.0000.00717.95
8.2.00.0040.00417.61
8.1.280.0070.01025.92
8.1.270.0040.00423.88
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00423.79
8.1.230.0100.00019.16
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0050.00317.22
8.1.180.0040.00719.01
8.1.170.0040.00418.39
8.1.160.0000.00821.88
8.1.150.0040.00418.57
8.1.140.0000.00717.34
8.1.130.0000.00717.80
8.1.120.0030.00317.33
8.1.110.0030.00317.35
8.1.100.0000.00717.41
8.1.90.0050.00217.34
8.1.80.0040.00317.38
8.1.70.0030.00317.36
8.1.60.0000.00817.58
8.1.50.0040.00417.41
8.1.40.0050.00217.46
8.1.30.0090.00017.58
8.1.20.0000.00817.45
8.1.10.0000.00717.44
8.1.00.0050.00317.41
8.0.300.0000.00720.64
8.0.290.0040.00417.15
8.0.280.0070.00018.45
8.0.270.0030.00317.24
8.0.260.0070.00017.19
8.0.250.0030.00317.02
8.0.240.0050.00316.87
8.0.230.0000.00816.94
8.0.220.0000.00716.78
8.0.210.0070.00016.72
8.0.200.0070.00016.84
8.0.190.0000.00716.86
8.0.180.0000.00716.91
8.0.170.0050.00216.83
8.0.160.0040.00416.76
8.0.150.0040.00416.80
8.0.140.0000.00816.89
8.0.130.0000.00713.29
8.0.120.0000.00816.88
8.0.110.0070.00016.93
8.0.100.0040.00416.91
8.0.90.0070.00016.69
8.0.80.0070.01416.84
8.0.70.0040.00416.85
8.0.60.0050.00216.95
8.0.50.0070.00017.00
8.0.30.0100.00817.00
8.0.20.0090.01017.40
8.0.10.0040.00416.88
8.0.00.0150.00616.79
7.4.330.0050.00015.14
7.4.320.0040.00416.54
7.4.300.0060.00016.59
7.4.290.0060.00016.45
7.4.280.0000.00816.41
7.4.270.0000.00716.54
7.4.260.0000.00716.43
7.4.250.0000.00716.39
7.4.240.0020.00616.48
7.4.230.0030.00316.64
7.4.220.0180.00716.42
7.4.210.0080.00816.49
7.4.200.0030.00316.43
7.4.190.0040.00416.46
7.4.160.0100.00616.51
7.4.150.0090.00917.40
7.4.140.0100.01017.86
7.4.130.0080.00816.38
7.4.120.0100.00716.40
7.4.110.0160.00616.39
7.4.100.0140.00416.55
7.4.90.0030.01316.47
7.4.80.0100.00719.39
7.4.70.0060.01616.71
7.4.60.0030.01416.55
7.4.50.0000.00716.52
7.4.40.0070.01016.60
7.4.30.0130.00316.42
7.4.00.0030.01114.66
7.3.330.0030.00313.12
7.3.320.0000.00613.11
7.3.310.0030.00316.23
7.3.300.0030.00316.22
7.3.290.0090.00616.16
7.3.280.0060.01416.20
7.3.270.0110.00717.40
7.3.260.0030.01416.57
7.3.250.0060.01116.44
7.3.240.0100.00616.59
7.3.230.0150.00816.39
7.3.210.0080.00816.48
7.3.200.0130.00919.39
7.3.190.0160.00616.45
7.3.180.0080.00716.41
7.3.170.0100.00616.27
7.3.160.0070.01116.42
7.3.120.0070.01014.61
7.2.330.0060.01216.65
7.2.320.0040.02016.63
7.2.310.0090.01516.55
7.2.300.0130.00316.42
7.2.290.0000.02116.45
7.2.60.0060.00616.72
7.1.200.0070.00415.67
7.1.70.0070.00717.06
7.1.60.0070.01019.46
7.1.50.0040.01816.48
7.1.00.0100.07022.30
7.0.200.0030.00316.82
7.0.140.0100.06722.11
7.0.60.0070.07019.82
7.0.50.0130.07717.86
7.0.40.0000.04720.25
7.0.30.0170.04320.02
7.0.20.0270.09320.00
7.0.10.0230.07720.19
7.0.00.0070.07320.01
5.6.280.0070.06720.77
5.6.210.0030.06720.68
5.6.200.0030.08318.11
5.6.190.0030.08320.57
5.6.180.2470.04320.38
5.6.170.0330.04020.45
5.6.160.0330.03720.70
5.6.150.0130.06318.07
5.6.140.0000.06318.18
5.6.130.0070.04718.17
5.6.120.0100.08721.08
5.6.110.0130.07721.09
5.6.100.0070.04321.08
5.6.90.0100.06020.96
5.6.80.0170.05320.48
5.6.70.0170.03720.37
5.5.350.0230.07320.46
5.5.340.0200.05717.92
5.5.330.0100.06020.23
5.5.320.0130.04720.44
5.5.310.0300.07320.28
5.5.300.0130.07018.01
5.5.290.0100.06018.02
5.5.280.0100.04320.95
5.5.270.0230.06720.75
5.5.260.0100.04020.75
5.5.250.0000.07320.75
5.5.240.0170.06020.15
5.4.450.0200.04719.24
5.4.440.0730.07019.13
5.4.430.0630.05719.10
5.4.420.0630.00019.51
5.4.410.0100.06018.96
5.4.400.0270.04718.79
5.4.390.0200.07318.72
5.4.380.0230.05018.70
5.4.370.0070.04318.56
5.4.360.0070.03718.79
5.4.350.0060.04711.97
5.4.340.0080.03311.96
5.4.320.0040.03712.45
5.4.310.0070.03712.45
5.4.300.0070.05012.45
5.4.290.0050.03912.45
5.4.280.0060.03712.34
5.4.270.0050.03812.34
5.4.260.0070.04112.35
5.4.250.0070.04312.35
5.4.240.0050.03812.35
5.4.230.0060.03912.34
5.4.220.0060.04112.34
5.4.210.0080.03612.34
5.4.200.0060.03812.34
5.4.190.0100.03212.34
5.4.180.0040.03912.34
5.4.170.0050.03812.35
5.4.160.0060.03712.34
5.4.150.0050.03812.34
5.4.140.0040.04512.02
5.4.130.0110.03112.01
5.4.120.0060.03511.96
5.4.110.0070.03511.96
5.4.100.0040.03711.96
5.4.90.0070.03611.96
5.4.80.0090.03511.96
5.4.70.0090.04211.96
5.4.60.0040.03711.96
5.4.50.0080.03311.96
5.4.40.0070.03311.95
5.4.30.0040.03711.95
5.4.20.0020.03911.95
5.4.10.0070.03411.95
5.4.00.0090.03311.43
5.3.290.0050.03812.80
5.3.280.0060.04212.71
5.3.270.0060.05112.73
5.3.260.0080.04712.72
5.3.250.0090.04112.72
5.3.240.0040.03912.72
5.3.230.0080.03712.71
5.3.220.0060.05212.68
5.3.210.0090.03612.68
5.3.200.0040.04012.68
5.3.190.0050.03912.68
5.3.180.0050.03712.68
5.3.170.0050.03812.67
5.3.160.0100.03312.67
5.3.150.0060.03612.67
5.3.140.0080.03312.66
5.3.130.0050.03912.66
5.3.120.0080.03812.66
5.3.110.0070.03812.66
5.3.100.0060.03612.12
5.3.90.0050.03712.08
5.3.80.0060.03612.08
5.3.70.0040.03912.07
5.3.60.0070.03512.06
5.3.50.0030.03812.00
5.3.40.0060.03612.00
5.3.30.0060.03411.94
5.3.20.0050.03711.72
5.3.10.0090.03111.69
5.3.00.0090.03711.68
5.2.170.0070.0309.18
5.2.160.0160.0589.18
5.2.150.0090.0389.18
5.2.140.0030.0459.17
5.2.130.0060.0499.13
5.2.120.0060.0419.14
5.2.110.0050.0419.14
5.2.100.0140.0379.14
5.2.90.0030.0449.14
5.2.80.0050.0449.13
5.2.70.0040.0459.13
5.2.60.0030.0469.09
5.2.50.0050.0419.05
5.2.40.0060.0399.03
5.2.30.0060.0299.01
5.2.20.0060.0399.01
5.2.10.0140.0448.93
5.2.00.0050.0378.80
5.1.60.0080.0298.08
5.1.50.0030.0288.07
5.1.40.0050.0258.05
5.1.30.0030.0288.40
5.1.20.0040.0288.43
5.1.10.0050.0258.16
5.1.00.0070.0248.15
5.0.50.0030.0216.63
5.0.40.0030.0206.49
5.0.30.0050.0316.30
5.0.20.0050.0216.27
5.0.10.0040.0196.25
5.0.00.0050.0306.25
4.4.90.0030.0154.78
4.4.80.0010.0174.75
4.4.70.0030.0154.76
4.4.60.0030.0144.76
4.4.50.0050.0214.77
4.4.40.0020.0274.71
4.4.30.0020.0164.76
4.4.20.0020.0174.84
4.4.10.0030.0164.85
4.4.00.0020.0264.76
4.3.110.0030.0154.67
4.3.100.0040.0134.66
4.3.90.0030.0144.64
4.3.80.0030.0244.58
4.3.70.0030.0144.63
4.3.60.0000.0174.63
4.3.50.0020.0164.63
4.3.40.0010.0254.54
4.3.30.0000.0193.30
4.3.20.0020.0163.28
4.3.10.0020.0163.21
4.3.00.0030.0206.76

preferences:
42.11 ms | 400 KiB | 5 Q