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[3] 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.70.0120.00916.34
8.3.60.0110.00416.38
8.3.50.0110.00821.88
8.3.40.0120.00618.90
8.3.30.0030.01019.23
8.3.20.0040.00420.39
8.3.10.0000.00823.69
8.3.00.0090.00319.38
8.2.180.0120.00918.41
8.2.170.0070.01122.96
8.2.160.0030.01020.25
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0070.00022.00
8.2.110.0000.00822.11
8.2.100.0070.00417.84
8.2.90.0030.00519.06
8.2.80.0030.00617.97
8.2.70.0040.00417.38
8.2.60.0000.00818.04
8.2.50.0030.00618.07
8.2.40.0040.00420.07
8.2.30.0040.00417.98
8.2.20.0030.00517.84
8.2.10.0040.00418.06
8.2.00.0060.00317.68
8.1.280.0150.00625.92
8.1.270.0100.00722.06
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.87
8.1.230.0030.00718.97
8.1.220.0000.00817.76
8.1.210.0040.00418.77
8.1.200.0100.00017.22
8.1.190.0050.00317.23
8.1.180.0090.00018.10
8.1.170.0050.00318.57
8.1.160.0040.00421.89
8.1.150.0000.00818.59
8.1.140.0040.00417.42
8.1.130.0000.00617.75
8.1.120.0040.00417.40
8.1.110.0000.00817.39
8.1.100.0040.00417.32
8.1.90.0000.00717.37
8.1.80.0020.00517.29
8.1.70.0000.00817.31
8.1.60.0030.00617.43
8.1.50.0050.00317.33
8.1.40.0040.00417.43
8.1.30.0050.00317.51
8.1.20.0040.00417.59
8.1.10.0050.00317.54
8.1.00.0000.00717.39
8.0.300.0000.00720.49
8.0.290.0050.00217.05
8.0.280.0070.00018.39
8.0.270.0000.00717.25
8.0.260.0000.00617.24
8.0.250.0000.00616.99
8.0.240.0000.00717.00
8.0.230.0000.00716.93
8.0.220.0000.00716.78
8.0.210.0030.00416.84
8.0.200.0000.00716.82
8.0.190.0000.00816.85
8.0.180.0030.00316.98
8.0.170.0000.00716.84
8.0.160.0040.00416.88
8.0.150.0030.00316.93
8.0.140.0050.00516.84
8.0.130.0000.00513.34
8.0.120.0000.00816.89
8.0.110.0000.00716.94
8.0.100.0050.00316.78
8.0.90.0000.00816.89
8.0.80.0060.00916.85
8.0.70.0050.00316.96
8.0.60.0000.00716.88
8.0.50.0000.00716.79
8.0.30.0100.01117.10
8.0.20.0070.01117.40
8.0.10.0040.00417.01
8.0.00.0080.01116.67
7.4.330.0020.00215.09
7.4.320.0030.00316.55
7.4.300.0060.00316.59
7.4.290.0000.00716.35
7.4.280.0080.00016.36
7.4.270.0030.00616.55
7.4.260.0030.00516.46
7.4.250.0000.00816.34
7.4.240.0030.00316.53
7.4.230.0040.00416.55
7.4.220.0080.00916.65
7.4.210.0070.00916.42
7.4.200.0000.00716.33
7.4.190.0000.00716.54
7.4.160.0040.01116.44
7.4.150.0100.00717.40
7.4.140.0070.01217.86
7.4.130.0140.00516.46
7.4.120.0090.01116.59
7.4.110.0060.01016.59
7.4.100.0140.01116.50
7.4.90.0080.00816.56
7.4.80.0130.01019.39
7.4.70.0090.01316.61
7.4.60.0130.00316.55
7.4.50.0000.00416.41
7.4.40.0000.01616.47
7.4.30.0080.00816.38
7.4.00.0130.00315.04
7.3.330.0020.00213.05
7.3.320.0000.00513.12
7.3.310.0040.00216.08
7.3.300.0070.00016.30
7.3.290.0130.00616.19
7.3.280.0060.01016.21
7.3.270.0080.00917.40
7.3.260.0070.01116.26
7.3.250.0150.00316.47
7.3.240.0100.00616.47
7.3.230.0070.01016.63
7.3.210.0100.00716.08
7.3.200.0090.00919.39
7.3.190.0120.00916.19
7.3.180.0090.00616.25
7.3.170.0040.01116.27
7.3.160.0120.00416.37
7.3.120.0090.00914.75
7.2.330.0060.01216.27
7.2.320.0080.01016.37
7.2.310.0120.00616.22
7.2.300.0090.00616.68
7.2.290.0100.00716.43
7.1.100.0060.00617.80
7.1.70.0070.00717.00
7.1.60.0140.01119.46
7.1.50.0070.01116.87
7.1.00.0030.07722.54
7.0.200.1060.00714.95
7.0.140.0000.07721.97
7.0.60.0000.05719.75
7.0.50.0100.07017.91
7.0.40.0070.08720.19
7.0.30.0270.08320.09
7.0.20.0270.03320.17
7.0.10.0070.09020.04
7.0.00.0200.07020.17
5.6.280.0030.07321.07
5.6.210.0130.06320.50
5.6.200.0130.03018.11
5.6.190.0100.07720.48
5.6.180.0200.07720.56
5.6.170.0400.05320.50
5.6.160.0170.07320.52
5.6.150.0030.05318.21
5.6.140.0030.05318.17
5.6.130.0030.04018.14
5.6.120.0030.04320.96
5.6.110.0070.04721.02
5.6.100.0130.06021.03
5.6.90.0000.08321.09
5.6.80.0130.03020.53
5.5.350.3270.03720.42
5.5.340.0030.04317.91
5.5.330.0000.04720.59
5.5.320.0300.06320.20
5.5.310.0230.05020.24
5.5.300.0030.08317.88
5.5.290.0030.06717.99
5.5.280.0000.06720.96
5.5.270.0100.04020.86
5.5.260.0100.04720.83
5.5.250.0100.06320.58
5.5.240.0030.07320.03
5.4.450.0130.06719.41
5.4.440.0200.06019.63
5.4.430.0200.05319.44
5.4.420.0170.06019.13
5.4.410.0300.05319.39
5.4.400.0000.06018.93
5.4.390.0200.05318.80
5.4.380.0300.03718.64
5.4.370.0230.04718.71
5.4.360.0230.04318.73
5.4.350.0100.06318.50
5.4.340.0100.05718.74
5.4.320.0070.03712.45
5.4.310.0060.03812.45
5.4.300.0060.03712.46
5.4.290.0070.03912.45
5.4.280.0070.03512.34
5.4.270.0090.03412.34
5.4.260.0080.03612.35
5.4.250.0090.03612.35
5.4.240.0090.05112.34
5.4.230.0110.06012.34
5.4.220.0080.05412.34
5.4.210.0070.04112.34
5.4.200.0070.03912.34
5.4.190.0070.03512.33
5.4.180.0070.04112.34
5.4.170.0090.04912.34
5.4.160.0130.04312.34
5.4.150.0060.05212.34
5.4.140.0060.05512.02
5.4.130.0040.05612.01
5.4.120.0070.03811.97
5.4.110.0050.04011.96
5.4.100.0070.03611.96
5.4.90.0080.03911.96
5.4.80.0060.03911.96
5.4.70.0080.03911.96
5.4.60.0060.04111.96
5.4.50.0060.03611.96
5.4.40.0110.03711.95
5.4.30.0080.04111.95
5.4.20.0090.03911.95
5.4.10.0080.04111.95
5.4.00.0080.04011.43
5.3.290.0040.04112.80
5.3.280.0080.04112.71
5.3.270.0070.04312.72
5.3.260.0060.04012.72
5.3.250.0100.05512.72
5.3.240.0080.04512.72
5.3.230.0110.05112.71
5.3.220.0090.03512.68
5.3.210.0080.04512.68
5.3.200.0080.03512.68
5.3.190.0100.03512.67
5.3.180.0070.03812.68
5.3.170.0090.03612.67
5.3.160.0040.04312.68
5.3.150.0070.03812.67
5.3.140.0080.03512.66
5.3.130.0070.04612.66
5.3.120.0050.04012.66
5.3.110.0070.04412.66
5.3.100.0080.04712.12
5.3.90.0080.04412.08
5.3.80.0070.05112.07
5.3.70.0060.03912.07
5.3.60.0130.05212.07
5.3.50.0130.05212.00
5.3.40.0090.04412.00
5.3.30.0030.03911.95
5.3.20.0070.03311.72
5.3.10.0050.03511.69
5.3.00.0080.04211.68
5.2.170.0050.0439.18
5.2.160.0060.0309.18
5.2.150.0060.0309.18
5.2.140.0040.0359.17
5.2.130.0060.0429.13
5.2.120.0050.0329.14
5.2.110.0070.0299.14
5.2.100.0050.0429.14
5.2.90.0080.0439.14
5.2.80.0060.0429.14
5.2.70.0110.0419.13
5.2.60.0070.0469.09
5.2.50.0060.0329.05
5.2.40.0060.0409.04
5.2.30.0050.0439.01
5.2.20.0050.0339.02
5.2.10.0090.0308.94
5.2.00.0040.0328.79
5.1.60.0040.0358.08
5.1.50.0050.0268.07
5.1.40.0050.0268.06
5.1.30.0050.0378.41
5.1.20.0040.0438.43
5.1.10.0070.0318.16
5.1.00.0050.0278.15
5.0.50.0050.0276.63
5.0.40.0050.0306.50
5.0.30.0070.0396.30
5.0.20.0050.0226.28
5.0.10.0070.0256.25
5.0.00.0040.0336.24
4.4.90.0070.0194.78
4.4.80.0010.0254.75
4.4.70.0030.0234.75
4.4.60.0050.0224.76
4.4.50.0080.0274.77
4.4.40.0090.0304.71
4.4.30.0080.0234.76
4.4.20.0100.0244.85
4.4.10.0070.0194.85
4.4.00.0030.0324.76
4.3.110.0050.0214.67
4.3.100.0050.0204.66
4.3.90.0050.0194.63
4.3.80.0020.0304.58
4.3.70.0010.0174.63
4.3.60.0040.0144.63
4.3.50.0030.0164.63
4.3.40.0060.0334.54
4.3.30.0020.0223.29
4.3.20.0030.0233.27
4.3.10.0010.0213.22
4.3.00.0100.0177.31

preferences:
39.61 ms | 401 KiB | 5 Q