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 " . $color(1) . "lawn, the " . $color(0) . " 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.0140.00416.87
8.3.50.0090.00721.83
8.3.40.0110.00718.68
8.3.30.0110.00318.94
8.3.20.0050.00220.35
8.3.10.0040.00420.54
8.3.00.0050.00319.50
8.2.180.0140.00718.66
8.2.170.0090.00622.96
8.2.160.0030.01020.48
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0050.00226.16
8.2.120.0000.00821.16
8.2.110.0030.00622.11
8.2.100.0000.01217.72
8.2.90.0040.00419.04
8.2.80.0080.00017.97
8.2.70.0080.00017.63
8.2.60.0040.00417.68
8.2.50.0080.00018.07
8.2.40.0050.00218.22
8.2.30.0000.00819.50
8.2.20.0000.00717.70
8.2.10.0000.00818.16
8.2.00.0040.00417.66
8.1.280.0110.00825.92
8.1.270.0060.00322.14
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00323.82
8.1.230.0060.00619.10
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00817.23
8.1.190.0080.00017.35
8.1.180.0000.00819.14
8.1.170.0040.00418.46
8.1.160.0020.00521.82
8.1.150.0040.00418.88
8.1.140.0000.00817.41
8.1.130.0060.00317.78
8.1.120.0000.00717.41
8.1.110.0050.00317.36
8.1.100.0040.00417.42
8.1.90.0040.00417.30
8.1.80.0040.00417.43
8.1.70.0000.00817.29
8.1.60.0030.00717.42
8.1.50.0030.00617.50
8.1.40.0000.00817.42
8.1.30.0080.00017.58
8.1.20.0030.00617.61
8.1.10.0000.00717.57
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0030.00318.38
8.0.270.0000.00717.21
8.0.260.0000.00617.19
8.0.250.0000.00716.98
8.0.240.0060.00016.99
8.0.230.0050.00216.97
8.0.220.0040.00416.89
8.0.210.0030.00316.82
8.0.200.0040.00416.93
8.0.190.0070.00016.95
8.0.180.0030.00316.95
8.0.170.0000.00716.83
8.0.160.0000.00716.88
8.0.150.0070.00016.78
8.0.140.0000.00716.89
8.0.130.0030.00313.30
8.0.120.0050.00316.86
8.0.110.0000.00816.81
8.0.100.0050.00216.68
8.0.90.0040.00416.77
8.0.80.0070.01116.95
8.0.70.0040.00416.82
8.0.60.0000.00716.96
8.0.50.0060.00316.69
8.0.30.0120.01016.88
8.0.20.0110.01017.40
8.0.10.0040.00416.90
8.0.00.0120.00716.74
7.4.330.0050.00015.00
7.4.320.0000.00716.46
7.4.300.0030.00316.53
7.4.290.0030.00316.50
7.4.280.0000.00716.49
7.4.270.0070.00016.54
7.4.260.0000.00716.36
7.4.250.0040.00416.46
7.4.240.0040.00416.53
7.4.230.0070.00016.54
7.4.220.0090.01016.64
7.4.210.0040.00916.57
7.4.200.0000.00716.51
7.4.160.0130.01016.41
7.4.150.0170.00717.40
7.4.140.0120.00517.86
7.4.130.0080.00816.59
7.4.120.0120.00716.56
7.4.110.0060.01016.51
7.4.100.0090.00916.57
7.4.90.0140.00616.57
7.4.80.0070.01019.39
7.4.70.0070.01016.53
7.4.60.0120.00616.50
7.4.50.0000.00816.45
7.4.40.0090.00816.46
7.4.30.0060.01016.40
7.4.10.0070.01115.06
7.4.00.0050.01115.00
7.3.330.0040.00413.23
7.3.320.0030.00313.12
7.3.310.0020.00516.09
7.3.300.0030.00316.28
7.3.290.0140.00016.24
7.3.280.0070.01216.27
7.3.270.0160.00317.40
7.3.260.0080.00916.20
7.3.250.0080.00916.34
7.3.240.0070.01416.28
7.3.230.0140.00316.43
7.3.210.0100.00716.41
7.3.200.0090.00919.39
7.3.190.0060.01016.27
7.3.180.0100.00616.28
7.3.170.0160.00016.27
7.3.160.0090.00616.44
7.3.130.0110.00814.78
7.3.120.0080.00914.82
7.3.110.0120.00715.01
7.3.100.0070.00614.51
7.3.90.0070.00514.68
7.3.80.0090.00514.82
7.3.70.0060.00614.74
7.3.60.0050.00914.76
7.3.50.0040.00814.62
7.3.40.0050.00614.56
7.3.30.0060.00714.56
7.3.20.0090.00116.56
7.3.10.0090.00316.62
7.3.00.0070.00516.60
7.2.330.0030.01516.28
7.2.320.0140.00716.38
7.2.310.0090.01116.47
7.2.300.0090.00616.60
7.2.290.0090.00616.31
7.2.260.0050.01015.01
7.2.250.0070.01115.04
7.2.240.0060.00814.91
7.2.230.0060.01114.71
7.2.220.0060.00815.00
7.2.210.0030.00815.04
7.2.200.0110.00414.65
7.2.190.0040.00814.88
7.2.180.0060.00914.73
7.2.170.0040.00714.68
7.2.160.0030.00914.90
7.2.150.0080.00716.69
7.2.140.0030.00916.75
7.2.130.0110.00516.68
7.2.120.0000.01216.65
7.2.110.0060.00416.81
7.2.100.0060.00816.57
7.2.90.0080.00516.70
7.2.80.0060.00916.77
7.2.70.0040.00716.79
7.2.60.0080.00516.75
7.2.50.0040.01116.67
7.2.40.0020.01216.72
7.2.30.0070.00716.81
7.2.20.0030.01116.75
7.2.10.0070.01016.83
7.2.00.0030.00816.73
7.1.330.0080.00515.65
7.1.320.0050.01015.73
7.1.310.0050.00515.49
7.1.300.0080.00815.71
7.1.290.0030.01015.63
7.1.280.0040.00815.49
7.1.270.0080.00715.50
7.1.260.0050.00515.67
7.1.250.0050.00515.61
7.1.240.0010.01115.59
7.1.230.0050.00615.52
7.1.220.0070.00515.59
7.1.210.0050.00515.67
7.1.200.0050.00915.68
7.1.190.0050.01115.65
7.1.180.0020.01215.57
7.1.170.0060.00915.59
7.1.160.0080.00615.64
7.1.150.0050.00715.65
7.1.140.0060.00815.66
7.1.130.0070.00515.71
7.1.120.0030.00715.56
7.1.110.0080.00315.78
7.1.100.0030.01015.67
7.1.90.0000.01215.67
7.1.80.0100.00315.73
7.1.70.0070.00416.04
7.1.60.0040.00916.93
7.1.50.0050.00816.00
7.1.40.0090.00515.56
7.1.30.0000.01215.61
7.1.20.0050.01015.46
7.1.10.0000.00815.64
7.1.00.0030.03117.75
7.0.330.0110.00315.28
7.0.320.0050.01015.46
7.0.310.0060.00615.32
7.0.300.0080.00615.28
7.0.290.0030.00915.27
7.0.280.0020.01015.40
7.0.270.0080.00515.36
7.0.260.0080.00315.27
7.0.250.0060.00515.27
7.0.240.0020.00715.37
7.0.230.0050.00715.26
7.0.220.0090.00715.49
7.0.210.0060.00515.21
7.0.200.0130.00415.15
7.0.190.0090.00415.12
7.0.180.0030.00815.20
7.0.170.0030.01015.33
7.0.160.0030.01115.39
7.0.150.0020.00815.32
7.0.140.0080.02717.50
7.0.130.0050.00715.36
7.0.120.0040.00515.31
7.0.110.0060.00415.24
7.0.100.0130.02516.91
7.0.90.0110.02616.97
7.0.80.0090.02916.80
7.0.70.0050.03316.73
7.0.60.0040.03416.81
7.0.50.0080.03016.96
7.0.40.0070.03215.63
7.0.30.0070.02915.56
7.0.20.0060.02515.59
7.0.10.0080.02915.51
7.0.00.0050.03415.56
5.6.400.0050.00614.43
5.6.390.0040.01014.45
5.6.380.0040.00614.40
5.6.370.0060.00514.22
5.6.360.0050.00814.41
5.6.350.0090.00414.26
5.6.340.0020.01114.39
5.6.330.0030.01214.17
5.6.320.0070.00614.50
5.6.310.0050.00714.46
5.6.300.0030.00714.58
5.6.290.0070.00814.39
5.6.280.0040.02916.55
5.6.270.0060.00614.24
5.6.260.0080.00714.13
5.6.250.0050.02016.37
5.6.240.0070.03216.41
5.6.230.0010.03816.29
5.6.220.0100.02816.48
5.6.210.0060.03016.45
5.6.200.0050.03216.63
5.6.190.0090.03316.43
5.6.180.0040.02416.54
5.6.170.0080.03116.56
5.6.160.0110.02816.52
5.6.150.0050.02316.49
5.6.140.0030.03016.53
5.6.130.0090.02516.61
5.6.120.0090.02016.47
5.6.110.0030.01916.48
5.6.100.0060.02916.35
5.6.90.0020.03416.59
5.6.80.0120.02616.38
5.6.70.0070.03016.33
5.6.60.0090.02716.23
5.6.50.0070.01716.28
5.6.40.0070.02916.09
5.6.30.0080.02716.29
5.6.20.0050.02816.44
5.6.10.0070.02116.22
5.6.00.0050.03216.18
5.5.380.0060.03216.14
5.5.370.0040.03316.15
5.5.360.0130.01916.25
5.5.350.0040.03316.25
5.5.340.0030.02516.39
5.5.330.0070.03216.31
5.5.320.0120.02716.33
5.5.310.0060.02316.45
5.5.300.0120.02516.44
5.5.290.0060.02816.41
5.5.280.0080.03016.49
5.5.270.0040.03216.33
5.5.260.0060.03016.42
5.5.250.0100.02816.21
5.5.240.0060.02916.18
5.5.230.0040.03216.18
5.5.220.0050.01716.09
5.5.210.0080.02816.09
5.5.200.0050.02516.06
5.5.190.0080.03116.20
5.5.180.0030.03415.96
5.5.170.0030.01014.07
5.5.160.0090.02316.12
5.5.150.0030.02916.17
5.5.140.0040.02816.24
5.5.130.0050.02216.17
5.5.120.0080.01916.06
5.5.110.0030.02315.98
5.5.100.0090.02716.19
5.5.90.0070.02816.05
5.5.80.0070.02716.15
5.5.70.0070.02816.15
5.5.60.0100.02416.01
5.5.50.0070.02515.97
5.5.40.0080.02815.99
5.5.30.0110.02416.04
5.5.20.0100.02616.03
5.5.10.0100.02716.03
5.5.00.0060.01816.02
5.4.450.0040.02713.88
5.4.440.0010.02913.78
5.4.430.0050.02413.68
5.4.420.0040.02013.79
5.4.410.0030.02613.72
5.4.400.0050.02913.63
5.4.390.0040.02813.60
5.4.380.0040.02913.71
5.4.370.0050.02613.64
5.4.360.0030.03113.66
5.4.350.0090.02613.67
5.4.340.0040.02513.56
5.4.330.0030.00310.79
5.4.320.0030.02813.63
5.4.310.0070.02913.66
5.4.300.0040.02913.63
5.4.290.0080.02313.61
5.4.280.0060.01813.69
5.4.270.0060.02713.59
5.4.260.0010.02413.63
5.4.250.0050.02913.51
5.4.240.0060.02513.54
5.4.230.0110.02513.65
5.4.220.0050.02613.64
5.4.210.0050.01913.63
5.4.200.0030.03313.60
5.4.190.0040.03013.61
5.4.180.0080.02713.57
5.4.170.0070.02913.64
5.4.160.0040.01813.62
5.4.150.0040.01713.67
5.4.140.0030.01712.78
5.4.130.0020.02012.77
5.4.120.0060.01412.70
5.4.110.0050.01512.85
5.4.100.0020.01612.74
5.4.90.0020.01912.77
5.4.80.0020.01612.70
5.4.70.0030.01712.70
5.4.60.0060.01412.70
5.4.50.0050.01912.72
5.4.40.0020.01912.85
5.4.30.0100.01112.76
5.4.20.0060.01512.65
5.4.10.0050.01512.69
5.4.00.0030.01812.54
5.3.290.0070.07314.64
5.3.280.0000.05714.55
5.3.270.0070.07714.56
5.3.260.0030.07014.45
5.3.250.0100.03014.43
5.3.240.0030.06014.45
5.3.230.0070.03314.59
5.3.220.0070.03314.57
5.3.210.0130.03014.55
5.3.200.0030.05014.48
5.3.190.0030.03714.57
5.3.180.0000.04014.56
5.3.170.0000.03714.57
5.3.160.0000.04014.49
5.3.150.0070.03314.55
5.3.140.0070.03314.42
5.3.130.0000.04014.55
5.3.120.0030.03714.43
5.3.110.0070.03314.48
5.3.100.0000.04013.88
5.3.90.0030.03713.96
5.3.80.0100.03314.00
5.3.70.0030.03313.97
5.3.60.0030.03714.00
5.3.50.0030.07013.80
5.3.40.0030.04713.94
5.3.30.0030.07313.82
5.3.20.0030.03713.65
5.3.10.0000.04013.59
5.3.00.0000.03713.55
5.2.170.0030.04711.06
5.2.160.0030.06011.21
5.2.150.0070.04011.21
5.2.140.0070.02711.13
5.2.130.0070.04711.14
5.2.120.0000.04010.94
5.2.110.0030.03311.09
5.2.100.0070.05010.94
5.2.90.0000.03311.13
5.2.80.0000.03011.05
5.2.70.0000.04710.96
5.2.60.0000.03011.01
5.2.50.0030.03010.81
5.2.40.0030.02711.05
5.2.30.0030.02710.92
5.2.20.0070.02710.81
5.2.10.0000.03010.77
5.2.00.0000.03010.77
5.1.60.0030.02310.05
5.1.50.0030.0239.99
5.1.40.0000.0279.96
5.1.30.0030.02710.39
5.1.20.0000.02710.42
5.1.10.0000.0279.93
5.1.00.0030.02010.12
5.0.50.0070.0138.91
5.0.40.0000.0208.91
5.0.30.0000.0308.91
5.0.20.0000.0178.91
5.0.10.0000.0178.91
5.0.00.0030.0238.91
4.4.90.0000.0208.91
4.4.80.0000.0238.91
4.4.70.0030.0138.91
4.4.60.0000.0178.91
4.4.50.0000.0178.91
4.4.40.0030.0208.91
4.4.30.0030.0138.91
4.4.20.0000.0178.91
4.4.10.0000.0138.91
4.4.00.0000.0308.91
4.3.110.0000.0178.91
4.3.100.0030.0108.91
4.3.90.0000.0178.91
4.3.80.0000.0208.91
4.3.70.0000.0138.91
4.3.60.0000.0138.91
4.3.50.0000.0178.91
4.3.40.0030.0278.91
4.3.30.0030.0138.91
4.3.20.0000.0138.91
4.3.10.0070.0138.91
4.3.00.0000.0138.91

preferences:
43.01 ms | 401 KiB | 5 Q