3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Hello world"; ?> <table> <?php //This is our first loop, changing the R value $r=15; while ($r <= 255) { echo "<tr>"; //Our third loop (B value) occurs 6 times for ever G value, or 216 times $b=15; while ($b <= 255) { //Here we actually generate the color blocks $background = str_pad((string)dechex($r), 2, "0", STR_PAD_LEFT) . F . F . str_pad((string)dechex($b), 2, "0", STR_PAD_LEFT); echo "<td bgcolor=\"#$background\">#$background</td>"; //At the end of each loop we add 3 $b = $b+16; } $r = $r+16; echo "</tr>"; } ?> </table> <p> <a href="http://www.goatella.com">Goatella's Home Page</a><p> <a href="https://github.com/Goatella/PHP-Hex">This script on GitHub</a>

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.0040.01118.89
8.3.30.0100.00319.17
8.3.20.0040.00420.33
8.3.10.0040.00423.48
8.3.00.0030.00619.80
8.2.170.0090.00622.96
8.2.160.0030.01020.35
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0040.00420.98
8.2.110.0030.00622.27
8.2.100.0040.00718.16
8.2.90.0030.00619.08
8.2.80.0030.00517.97
8.2.70.0040.00417.50
8.2.60.0030.00518.04
8.2.50.0040.00718.07
8.2.40.0040.00418.03
8.2.30.0080.00018.26
8.2.20.0040.00417.63
8.2.10.0000.00818.01
8.2.00.0040.00417.80
8.1.270.0080.00023.79
8.1.260.0070.00026.35
8.1.250.0000.00928.09
8.1.240.0060.00322.05
8.1.230.0040.00719.09
8.1.220.0050.00317.76
8.1.210.0050.00318.77
8.1.200.0090.00017.35
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0000.00818.30
8.1.160.0040.00421.93
8.1.150.0000.00718.92
8.1.140.0070.00017.45
8.1.130.0070.00017.72
8.1.120.0020.00517.47
8.1.110.0040.00417.49
8.1.100.0000.00717.43
8.1.90.0000.00717.46
8.1.80.0070.00217.45
8.1.70.0030.00517.42
8.1.60.0030.00717.59
8.1.50.0030.00617.54
8.1.40.0040.00417.44
8.1.30.0030.00517.65
8.1.20.0000.00717.63
8.1.10.0030.00617.55
8.1.00.0080.00017.50
8.0.300.0080.00018.77
8.0.290.0040.00416.88
8.0.280.0030.00318.41
8.0.270.0000.00817.26
8.0.260.0000.00617.26
8.0.250.0000.00716.98
8.0.240.0040.00416.97
8.0.230.0030.00317.04
8.0.220.0030.00317.00
8.0.210.0000.00716.98
8.0.200.0030.00317.04
8.0.190.0000.00717.00
8.0.180.0040.00417.02
8.0.170.0050.00316.88
8.0.160.0050.00316.94
8.0.150.0000.00816.90
8.0.140.0000.00816.89
8.0.130.0050.00013.41
8.0.120.0040.00416.92
8.0.110.0040.00416.88
8.0.100.0030.00616.99
8.0.90.0050.00316.98
8.0.80.0160.00616.90
8.0.70.0040.00416.90
8.0.60.0040.00416.85
8.0.50.0040.00416.82
8.0.30.0140.00817.20
8.0.20.0110.00817.40
8.0.10.0050.00316.94
8.0.00.0090.01116.83
7.4.330.0060.00015.13
7.4.320.0060.00016.43
7.4.300.0000.00816.24
7.4.290.0030.00316.49
7.4.280.0060.00316.49
7.4.270.0040.00416.34
7.4.260.0020.01016.54
7.4.250.0040.00416.59
7.4.240.0030.00416.42
7.4.230.0080.00016.43
7.4.220.0180.00916.52
7.4.210.0100.01016.45
7.4.200.0070.00016.22
7.4.160.0100.01316.33
7.4.150.0140.01117.40
7.4.140.0160.01117.86
7.4.130.0120.00916.53
7.4.120.0190.00916.47
7.4.110.0070.01916.64
7.4.100.0110.02216.63
7.4.90.0220.01216.61
7.4.80.0130.00719.39
7.4.70.0100.01016.73
7.4.60.0110.00916.70
7.4.50.0000.00616.18
7.4.40.0060.01716.43
7.4.30.0150.00816.41
7.4.00.0100.01015.04
7.3.330.0030.00313.12
7.3.320.0000.00513.23
7.3.310.0040.00416.34
7.3.300.0000.00716.24
7.3.290.0060.00916.19
7.3.280.0070.01116.36
7.3.270.0190.00617.40
7.3.260.0150.01116.29
7.3.250.0120.01316.46
7.3.240.0240.01016.48
7.3.230.0100.01516.41
7.3.210.0160.01016.41
7.3.200.0120.00619.39
7.3.190.0120.00616.15
7.3.180.0140.01116.59
7.3.170.0140.00716.57
7.3.160.0120.00616.41
7.3.120.0080.01114.97
7.2.330.0190.01216.39
7.2.320.0180.01516.76
7.2.310.0110.00816.27
7.2.300.0120.01116.41
7.2.290.0060.01216.48
7.2.60.0070.00416.86
7.2.00.0060.00619.55
7.1.200.0090.00915.51
7.1.100.0100.00318.16
7.1.70.0030.00917.16
7.1.60.0060.01919.70
7.1.50.0190.00617.04
7.1.00.0030.07722.24
7.0.200.0090.00616.88
7.0.140.0030.07721.95
7.0.110.0070.04019.97
7.0.100.0030.04319.97
7.0.90.0000.04720.12
7.0.80.0000.04019.97
7.0.70.0070.03320.09
7.0.60.0030.04319.92
7.0.50.0070.04019.92
7.0.40.0030.04719.65
7.0.30.0100.07019.66
7.0.20.0070.04719.66
7.0.10.0170.07319.71
7.0.00.0130.07319.80
5.6.280.0070.09021.15
5.6.260.0030.04020.69
5.6.250.0030.04020.74
5.6.240.0000.05020.59
5.6.230.0100.05320.66
5.6.220.0130.03720.54
5.6.210.0070.03720.63
5.6.200.0070.04020.68
5.6.190.0000.05720.61
5.6.180.0130.07320.64
5.6.170.0100.08320.61
5.6.160.0130.07320.61
5.6.150.0070.04720.64
5.6.140.0030.08720.66
5.6.130.0030.07320.67
5.6.120.0070.08320.57
5.6.110.0170.06320.61
5.6.100.0130.07020.63
5.6.90.0100.08020.58
5.6.80.0030.06020.08
5.6.70.0070.07020.01
5.6.60.0130.07319.92
5.6.50.0030.04320.23
5.6.40.0100.04319.90
5.6.30.0100.08020.06
5.6.20.0100.04719.99
5.6.10.0200.03020.01
5.6.00.0070.07719.97
5.5.380.0030.04017.60
5.5.370.0030.04017.56
5.5.360.0000.04017.68
5.5.350.0100.02717.54
5.5.340.0070.03317.85
5.5.330.0100.06018.05
5.5.320.0070.03017.82
5.5.310.0070.07318.10
5.5.300.0070.08318.01
5.5.290.0030.08017.98
5.5.280.0030.08717.82
5.5.270.0030.08717.96
5.5.260.0100.04717.81
5.5.250.0200.06717.67
5.5.240.0100.07317.38
5.5.230.0130.07017.39
5.5.220.0100.06317.36
5.5.210.0200.06317.48
5.5.200.0070.07717.44
5.5.190.0030.08317.18
5.5.180.0100.07317.17
5.5.160.0130.06017.39
5.5.150.0170.07017.22
5.5.140.0030.08017.20
5.5.130.0100.08017.44
5.5.120.0130.06317.29
5.5.110.0070.07717.45
5.5.100.0070.07717.16
5.5.90.0230.06017.07
5.5.80.0230.03317.09
5.5.70.0100.04717.25
5.5.60.0100.07017.28
5.5.50.0030.05017.35
5.5.40.0070.07317.08
5.5.30.0170.06717.33
5.5.20.0070.05717.26
5.5.10.0170.06017.30
5.5.00.0070.08317.27
5.4.450.0030.07719.25
5.4.440.0100.04319.30
5.4.430.0030.06019.43
5.4.420.0100.07319.20
5.4.410.0130.07319.16
5.4.400.0100.03719.04
5.4.390.0000.08718.91
5.4.380.0200.02718.93
5.4.370.0100.07019.05
5.4.360.0100.06719.00
5.4.350.0170.06718.84
5.4.340.0130.07018.95
5.4.320.0070.06718.91
5.4.310.0070.08318.96
5.4.300.0200.06719.00
5.4.290.0030.04318.89
5.4.280.0070.07318.93
5.4.270.0000.08718.88
5.4.260.0070.04319.11
5.4.250.0130.07018.93
5.4.240.0070.07718.87
5.4.230.0070.07718.92
5.4.220.0030.08019.03
5.4.210.0130.07018.79
5.4.200.0030.04019.16
5.4.190.0070.07718.99
5.4.180.0030.07719.20
5.4.170.0100.06718.87
5.4.160.0030.04718.96
5.4.150.0230.06718.93
5.4.140.0100.07716.47
5.4.130.0170.07016.38
5.4.120.0100.06316.37
5.4.110.0100.05716.34
5.4.100.0100.07316.34
5.4.90.0100.06716.54
5.4.80.0070.07016.29
5.4.70.0030.08016.26
5.4.60.0100.06716.16
5.4.50.0030.07316.33
5.4.40.0000.04016.38
5.4.30.0070.07016.13
5.4.20.0170.03016.20
5.4.10.0130.06016.16
5.4.00.0030.08015.82
5.3.290.0100.07714.29
5.3.280.0130.06714.32
5.3.270.0070.07714.53
5.3.260.0100.07314.46
5.3.250.0070.08014.39
5.3.240.0070.07014.29
5.3.230.0100.08014.21
5.3.220.0130.06314.35
5.3.210.0170.07014.41
5.3.200.0030.08014.49
5.3.190.0100.03714.33
5.3.180.0030.08314.42
5.3.170.0030.08014.30
5.3.160.0030.07714.33
5.3.150.0130.07314.16
5.3.140.0030.07714.33
5.3.130.0130.07314.30
5.3.120.0030.04714.39
5.3.110.0170.07014.39
5.3.100.0000.06014.02
5.3.90.0030.04013.76
5.3.80.0070.07713.89
5.3.70.0170.05013.91
5.3.60.0070.06713.71
5.3.50.0100.04013.55
5.3.40.0070.07713.60
5.3.30.0000.06313.56
5.3.20.0100.03013.56
5.3.10.0070.06713.43
5.3.00.0170.06013.34

preferences:
71.93 ms | 400 KiB | 5 Q