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";

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.0090.00616.38
8.3.50.0100.00723.00
8.3.40.0070.00718.80
8.3.30.0130.00918.96
8.3.20.0040.00420.26
8.3.10.0030.00521.77
8.3.00.0060.00317.50
8.2.180.0160.00016.38
8.2.170.0070.00722.96
8.2.160.0070.01020.37
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0110.00826.16
8.2.120.0050.00320.96
8.2.110.0030.00620.64
8.2.100.0030.00917.91
8.2.90.0030.00519.39
8.2.80.0060.00317.97
8.2.70.0030.00517.63
8.2.60.0050.00218.05
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0050.00218.14
8.2.20.0000.00817.80
8.2.10.0080.00018.04
8.2.00.0060.00317.67
8.1.280.0040.01125.92
8.1.270.0080.00823.88
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0080.00024.02
8.1.230.0000.01017.52
8.1.220.0100.00017.78
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0080.00017.13
8.1.180.0080.00018.10
8.1.170.0030.00518.66
8.1.160.0070.00022.03
8.1.150.0000.00718.91
8.1.140.0040.00417.46
8.1.130.0030.00317.80
8.1.120.0030.00517.44
8.1.110.0000.00717.37
8.1.100.0000.00717.42
8.1.90.0030.00517.41
8.1.80.0000.00817.34
8.1.70.0030.00317.32
8.1.60.0040.00417.59
8.1.50.0040.00417.48
8.1.40.0030.00617.52
8.1.30.0000.00817.57
8.1.20.0050.00317.54
8.1.10.0060.00317.55
8.1.00.0040.00417.54
8.0.300.0080.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00718.48
8.0.270.0090.00017.26
8.0.260.0000.00617.24
8.0.250.0000.00716.84
8.0.240.0000.00716.80
8.0.230.0070.00016.88
8.0.220.0030.00316.86
8.0.210.0000.00716.77
8.0.200.0000.00616.80
8.0.190.0000.00716.82
8.0.180.0050.00216.97
8.0.170.0000.00816.88
8.0.160.0030.00616.91
8.0.150.0080.00016.81
8.0.140.0040.00416.88
8.0.130.0030.00313.39
8.0.120.0030.00616.89
8.0.110.0000.00816.87
8.0.100.0050.00216.91
8.0.90.0000.00816.95
8.0.80.0000.02016.84
8.0.70.0030.00416.71
8.0.60.0050.00216.68
8.0.50.0020.00516.67
8.0.30.0090.01117.07
8.0.20.0100.01217.40
8.0.10.0070.00016.82
8.0.00.0140.00716.80
7.4.330.0000.00515.03
7.4.320.0040.00416.42
7.4.300.0030.00316.40
7.4.290.0030.00316.35
7.4.280.0060.00316.52
7.4.270.0030.00316.40
7.4.260.0030.00316.40
7.4.250.0070.00016.39
7.4.240.0050.00216.49
7.4.230.0040.00416.32
7.4.220.0060.01216.55
7.4.210.0070.00916.52
7.4.200.0030.00316.50
7.4.160.0160.00016.47
7.4.150.0070.01017.40
7.4.140.0080.01017.86
7.4.130.0120.00416.48
7.4.120.0100.00716.36
7.4.110.0000.01716.46
7.4.100.0130.00516.43
7.4.90.0000.01616.36
7.4.80.0180.00419.39
7.4.70.0060.00916.59
7.4.60.0120.00716.69
7.4.50.0030.00316.27
7.4.40.0100.00716.50
7.4.30.0100.00616.64
7.4.00.0030.01214.94
7.3.330.0000.00713.10
7.3.320.0000.00712.93
7.3.310.0030.00316.25
7.3.300.0070.00016.24
7.3.290.0090.00316.21
7.3.280.0090.00916.19
7.3.270.0110.00617.40
7.3.260.0060.01316.39
7.3.250.0090.00816.49
7.3.240.0090.00616.34
7.3.230.0130.00316.39
7.3.210.0030.01416.36
7.3.200.0110.01119.39
7.3.190.0140.00316.57
7.3.180.0080.00816.24
7.3.170.0070.00716.32
7.3.160.0100.00616.26
7.3.10.0060.00916.27
7.3.00.0030.01016.42
7.2.330.0080.00816.36
7.2.320.0060.01216.38
7.2.310.0100.00716.41
7.2.300.0100.00616.43
7.2.290.0070.01016.60
7.2.130.0060.00917.00
7.2.120.0060.00916.71
7.2.110.0040.01116.88
7.2.100.0030.01316.83
7.2.90.0090.00616.95
7.2.80.0120.00016.93
7.2.70.0100.00717.05
7.2.60.0060.00916.87
7.2.50.0040.00916.72
7.2.40.0070.00716.92
7.2.30.0120.00316.77
7.2.20.0000.01417.00
7.2.10.0040.00716.71
7.2.00.0070.00817.81
7.1.250.0070.00715.49
7.1.200.0030.00615.79
7.1.100.0110.00417.85
7.1.70.0040.00417.20
7.1.60.0060.01919.40
7.1.50.0070.01116.89
7.1.00.0030.07722.54
7.0.200.0000.00916.85
7.0.140.0070.07322.08
7.0.60.0070.08019.95
7.0.50.0100.04017.88
7.0.40.0100.03720.19
7.0.30.0270.07720.13
7.0.20.0400.07320.16
7.0.10.0130.06720.16
7.0.00.0030.08720.04
5.6.280.0070.07021.01
5.6.210.0030.04020.66
5.6.200.0030.05318.16
5.6.190.0000.04320.49
5.6.180.0300.07320.75
5.6.170.0230.08020.52
5.6.160.0030.07320.45
5.6.150.0030.08318.18
5.6.140.0070.04318.09
5.6.130.0070.04018.15
5.6.120.0070.03721.11
5.6.110.0070.08320.99
5.6.100.0030.09021.00
5.6.90.0030.09021.09
5.6.80.0230.06320.42
5.5.350.0030.07720.44
5.5.340.0130.07718.02
5.5.330.0100.04720.42
5.5.320.0400.05020.30
5.5.310.0330.07320.21
5.5.300.0070.07017.95
5.5.290.0030.04018.01
5.5.280.0130.06320.87
5.5.270.0100.06720.87
5.5.260.0000.07320.84
5.5.250.0100.07320.58
5.5.240.0400.05720.36
5.4.450.0230.06719.58
5.4.440.0600.03719.48
5.4.430.0330.04019.38
5.4.420.0500.05019.38
5.4.410.0170.03719.24
5.4.400.0230.04319.09
5.4.390.0330.04018.93
5.4.380.0130.05318.50
5.4.370.0130.05018.66
5.4.360.0100.06018.73
5.4.350.0100.05718.49
5.4.340.0100.05018.68
5.4.320.0050.04112.45
5.4.310.0120.05612.45
5.4.300.0080.03912.45
5.4.290.0070.04512.45
5.4.280.0110.03512.35
5.4.270.0050.03912.34
5.4.260.0080.04112.34
5.4.250.0120.05412.34
5.4.240.0080.03712.35
5.4.230.0060.03812.34
5.4.220.0080.04512.34
5.4.210.0080.03912.34
5.4.200.0080.03812.34
5.4.190.0100.05112.33
5.4.180.0080.06412.34
5.4.170.0090.05312.35
5.4.160.0090.05412.34
5.4.150.0090.05112.34
5.4.140.0140.05412.02
5.4.130.0120.05012.01
5.4.120.0090.04811.97
5.4.110.0070.04611.96
5.4.100.0090.04511.96
5.4.90.0100.04911.96
5.4.80.0090.04411.97
5.4.70.0030.04311.96
5.4.60.0080.03311.96
5.4.50.0100.05211.96
5.4.40.0080.05011.95
5.4.30.0060.04711.95
5.4.20.0040.03911.95
5.4.10.0100.03611.95
5.4.00.0070.03711.43
5.3.290.0050.04012.80
5.3.280.0110.04012.71
5.3.270.0060.04112.72
5.3.260.0040.04312.72
5.3.250.0070.05412.72
5.3.240.0060.04012.72
5.3.230.0080.04012.71
5.3.220.0060.03712.68
5.3.210.0080.04012.68
5.3.200.0100.03312.68
5.3.190.0060.03812.68
5.3.180.0060.03712.67
5.3.170.0060.04012.67
5.3.160.0080.05212.67
5.3.150.0060.04412.67
5.3.140.0060.04212.66
5.3.130.0080.04612.66
5.3.120.0080.04612.65
5.3.110.0100.04512.66
5.3.100.0100.05012.11
5.3.90.0020.04312.09
5.3.80.0060.03612.07
5.3.70.0040.03712.07
5.3.60.0060.04112.07
5.3.50.0050.04412.00
5.3.40.0060.04512.00
5.3.30.0050.03711.94
5.3.20.0080.03411.72
5.3.10.0080.03311.69
5.3.00.0070.05311.68
5.2.170.0050.0389.18
5.2.160.0060.0299.18
5.2.150.0050.0319.18
5.2.140.0050.0329.18
5.2.130.0020.0369.14
5.2.120.0050.0419.13
5.2.110.0060.0399.14
5.2.100.0060.0399.14
5.2.90.0070.0399.14
5.2.80.0050.0419.13
5.2.70.0040.0339.13
5.2.60.0050.0309.09
5.2.50.0080.0389.05
5.2.40.0050.0399.04
5.2.30.0050.0409.01
5.2.20.0030.0378.99
5.2.10.0020.0308.91
5.2.00.0030.0308.78
5.1.60.0030.0248.06
5.1.50.0030.0258.05
5.1.40.0040.0248.04
5.1.30.0050.0258.39
5.1.20.0040.0288.41
5.1.10.0040.0278.14
5.1.00.0020.0288.14
5.0.50.0010.0326.61
5.0.40.0050.0226.47
5.0.30.0040.0346.29
5.0.20.0030.0246.26
5.0.10.0030.0206.23
5.0.00.0000.0346.22
4.4.90.0040.0144.78
4.4.80.0020.0154.76
4.4.70.0010.0174.76
4.4.60.0020.0174.75
4.4.50.0040.0174.77
4.4.40.0050.0294.70
4.4.30.0030.0264.76
4.4.20.0070.0374.85
4.4.10.0040.0224.85
4.4.00.0050.0384.76
4.3.110.0040.0264.67
4.3.100.0030.0254.66
4.3.90.0030.0164.63
4.3.80.0020.0274.58
4.3.70.0060.0224.63
4.3.60.0040.0214.63
4.3.50.0030.0174.62
4.3.40.0070.0284.54
4.3.30.0050.0213.28
4.3.20.0010.0233.26
4.3.10.0060.0183.22
4.3.00.0030.01315.91

preferences:
29.43 ms | 401 KiB | 5 Q