3v4l.org

run code in 300+ PHP versions simultaneously
<?php $white = hexdec('#ffffff'); //Loops for a bunch of colours for( $i = 0 ; $i <= $white ; $i=$i+5000 ) { //set default css background-color property $backgroundValue = dechex( $i ); //if there are less of 7 characters (ex. #fa444, or #32F, ...) if( $numLen = strlen( dechex( $i )) < 7 ) { //insert (7 - numbers of characters) number of zeros after # for ( $j = 0 ; $j < 7 - $numLen ; $j++ ) $backgroundValue = strtr( $backgroundValue, '#', '#0'); } //echo each div with each background-color property. echo '<div class="colour" style="width: 10%; float: left; background: #'.$backgroundValue.';">'.dechex($i).'</div>'; }

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.00318.55
8.3.50.0120.01021.15
8.3.40.0030.01218.68
8.3.30.0280.01120.38
8.3.20.0080.00018.76
8.3.10.0060.00320.96
8.3.00.0130.00023.65
8.2.180.0150.01918.54
8.2.170.0110.00722.96
8.2.160.0310.00420.52
8.2.150.0090.00024.18
8.2.140.0060.00324.66
8.2.130.0070.00326.16
8.2.120.0130.00020.95
8.2.110.0030.00619.41
8.2.100.0060.00617.91
8.2.90.0060.00318.99
8.2.80.0060.00619.34
8.2.70.0090.00017.75
8.2.60.0090.00017.80
8.2.50.0060.00318.07
8.2.40.0070.00318.22
8.2.30.0080.00419.42
8.2.20.0040.00417.78
8.2.10.0040.00417.97
8.2.00.0080.00017.79
8.1.280.0110.00725.92
8.1.270.0160.00023.99
8.1.260.0170.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00321.96
8.1.230.0050.00920.94
8.1.220.0030.00618.64
8.1.210.0000.00818.77
8.1.200.0090.00017.23
8.1.190.0000.00817.41
8.1.180.0060.00318.10
8.1.170.0050.00318.44
8.1.160.0020.00518.98
8.1.150.0050.00318.61
8.1.140.0060.00317.59
8.1.130.0060.00317.90
8.1.120.0030.00517.44
8.1.110.0030.00617.58
8.1.100.0030.00617.58
8.1.90.0030.00617.59
8.1.80.0000.00917.59
8.1.70.0040.00417.53
8.1.60.0050.00517.56
8.1.50.0000.00717.56
8.1.40.0030.00717.59
8.1.30.0050.00417.68
8.1.20.0060.00317.62
8.1.10.0110.00017.58
8.1.00.0040.00817.46
8.0.300.0040.00419.81
8.0.290.0090.00316.93
8.0.280.0040.00418.36
8.0.270.0090.00017.14
8.0.260.0030.00316.77
8.0.250.0020.00516.91
8.0.240.0030.00616.84
8.0.230.0020.00517.01
8.0.220.0070.00016.89
8.0.210.0000.00716.88
8.0.200.0050.00217.00
8.0.190.0000.00917.05
8.0.180.0000.00916.95
8.0.170.0050.00516.81
8.0.160.0040.00417.00
8.0.150.0040.00416.96
8.0.140.0090.00316.76
8.0.130.0000.00713.43
8.0.120.0060.00316.78
8.0.110.0060.00316.71
8.0.100.0040.00416.85
8.0.90.0000.00716.89
8.0.80.0100.00716.88
8.0.70.0040.00416.77
8.0.60.0030.00616.89
8.0.50.0000.00916.73
8.0.30.0250.00916.99
8.0.20.0150.01317.40
8.0.10.0060.00317.04
8.0.00.0160.01316.72
7.4.330.0030.00316.75
7.4.320.0030.00316.52
7.4.300.0000.00716.43
7.4.290.0080.00016.48
7.4.280.0030.00616.53
7.4.270.0030.00616.50
7.4.260.0030.00513.36
7.4.250.0000.00816.46
7.4.240.0000.00916.42
7.4.230.0000.00716.52
7.4.220.0070.01816.42
7.4.210.0070.01316.43
7.4.200.0080.00016.59
7.4.190.0030.00516.65
7.4.160.0130.00716.39
7.4.150.0210.00317.40
7.4.140.0210.01217.86
7.4.130.0200.01416.52
7.4.120.0220.00716.40
7.4.110.0330.01116.41
7.4.100.0090.01216.49
7.4.90.0200.02116.56
7.4.80.0320.01319.39
7.4.70.0090.01316.38
7.4.60.0110.01616.54
7.4.50.0050.00916.56
7.4.40.0190.01922.77
7.4.30.0300.00016.46
7.3.330.0000.00613.21
7.3.320.0000.00813.20
7.3.310.0040.00416.10
7.3.300.0040.00416.15
7.3.290.0090.00616.16
7.3.280.0090.01016.22
7.3.270.0120.02417.40
7.3.260.0150.01018.24
7.3.250.0270.01116.50
7.3.240.0140.01716.57
7.3.230.0130.01016.46
7.3.210.0100.00716.14
7.3.200.0130.01019.39
7.3.190.0240.01016.48
7.3.180.0180.01416.25
7.3.170.0150.01816.57
7.3.160.0450.00816.33
7.2.330.0140.01416.77
7.2.320.0220.02316.62
7.2.310.0170.01816.70
7.2.300.0130.01116.68
7.2.290.0350.02816.54
7.2.100.0800.00614.68
7.2.90.0830.00614.55
7.2.80.0110.01114.77
7.2.70.0950.01514.79
7.2.60.1120.01014.80
7.2.50.0980.01615.02
7.2.40.0900.01414.83
7.2.30.0830.01015.07
7.2.20.1010.00715.16
7.2.10.0220.00415.05
7.2.00.1170.00015.05
7.1.220.0560.01014.04
7.1.210.0610.00713.96
7.1.200.0850.00713.99
7.1.190.0780.01413.60
7.1.180.1040.00314.02
7.1.170.0120.01113.90
7.1.160.0970.01313.90
7.1.150.0710.01513.93
7.1.140.1180.00313.66
7.1.130.1160.00013.70
7.1.120.0890.00613.86
7.1.110.0490.00613.98
7.1.100.0870.00313.98
7.1.90.1060.00013.70
7.1.80.0720.01013.96
7.1.70.0990.00713.81
7.1.60.1240.00732.05
7.1.50.1320.00732.05
7.1.40.1230.01231.75
7.1.30.0490.02231.95
7.1.20.1300.00732.11
7.1.10.1140.00313.72
7.1.00.0840.01014.04
7.0.310.0820.00013.70
7.0.300.1100.01313.60
7.0.290.0180.00313.69
7.0.280.1130.01013.79
7.0.270.1030.01013.64
7.0.260.0940.00313.67
7.0.250.0790.00013.60
7.0.240.0110.00813.60
7.0.230.1000.00613.62
7.0.220.0780.00313.78
7.0.210.0670.00613.61
7.0.200.1440.01013.72
7.0.190.0690.01013.81
7.0.180.0200.00813.62
7.0.170.1280.00613.66
7.0.160.1060.00713.77
7.0.150.1040.00913.60
7.0.140.1070.00013.64
7.0.130.1170.00413.84
7.0.120.0370.00813.86
7.0.110.1030.00313.60
7.0.100.0540.01013.83
7.0.90.1030.00713.80
7.0.80.1020.00713.60
7.0.70.1090.00913.60
7.0.60.1040.00013.60
7.0.50.1020.00913.76
7.0.40.0860.00313.87
7.0.30.0990.00313.68
7.0.20.1010.00913.60
7.0.10.1280.01213.60
7.0.00.0940.00813.60
5.6.380.0120.00914.14
5.6.370.0140.00714.44
5.6.360.0100.00714.46
5.6.350.0040.01214.53
5.6.340.0150.00614.35
5.6.330.0130.00814.36
5.6.320.0100.00414.22
5.6.310.0090.00514.32
5.6.300.0060.01314.04
5.6.290.0080.00814.55
5.6.280.0180.00014.55
5.6.270.0120.00814.61
5.6.260.0050.00914.29
5.6.250.0050.01014.44
5.6.240.0030.01514.20
5.6.230.0100.00514.24
5.6.220.0090.01114.61
5.6.210.0090.01114.32
5.6.200.0040.01214.38
5.6.190.0040.01414.30
5.6.180.0060.01214.38
5.6.170.0110.00514.00
5.6.160.0150.00314.11
5.6.150.0090.01114.25
5.6.140.0100.01614.26
5.6.130.0060.01214.40
5.6.120.0170.01114.25
5.6.110.0110.01414.08
5.6.100.0140.00714.40
5.6.90.0040.02014.15
5.6.80.0130.01014.38
5.6.70.0140.00713.92
5.6.60.0210.00014.12
5.6.50.0100.00914.07
5.6.40.0000.02314.00
5.6.30.0050.01614.18
5.6.20.0040.01314.00
5.6.10.0160.00414.13
5.6.00.0090.01414.55
5.5.380.0040.01113.60
5.5.370.0070.00913.60
5.5.360.0040.00713.60
5.5.350.0050.00513.60
5.5.340.0040.00813.60
5.5.330.0060.01313.60
5.5.320.0070.00713.60
5.5.310.0000.01313.60
5.5.300.0160.00313.60
5.5.290.0110.00713.60
5.5.280.0070.00713.60
5.5.270.0050.01013.60
5.5.260.0150.00013.60
5.5.250.0050.01113.60
5.5.240.0140.01013.60
5.5.230.0140.00513.60
5.5.220.0130.00513.60
5.5.210.0040.00813.60
5.5.200.0000.01313.60
5.5.190.0110.00813.60
5.5.180.0000.01713.60
5.5.170.0130.00914.23
5.5.160.0100.01313.60
5.5.150.0220.00013.60
5.4.450.0080.00813.60
5.4.440.0140.00513.60
5.4.430.0130.00313.60
5.4.420.0110.01113.60
5.4.410.0120.00913.60
5.4.400.0060.00913.60
5.4.390.0140.00513.60
5.4.380.0000.01913.60
5.4.370.0200.00313.60
5.4.360.0090.01313.60
5.4.350.0120.00613.60
5.4.340.0150.00513.60
5.4.330.0060.01513.60
5.4.320.0120.01213.60
5.3.290.0070.00713.60

preferences:
44.13 ms | 401 KiB | 5 Q