3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr =array(); for($x = 1; $x < 6; $x++){ //set each white ball variable (a through e) to a random number between 1 and 69 While (count($arr) != 5){ $arr[] = floor((lcg_value() * 6 + 1)); $arr = array_unique($arr); } //set powerball number variable to a number between 1 and 26 $f = floor((lcg_value() * 26 + 1)); Var_dump($arr); //echo all white ball numbers and powerball number //echo "<b><u>Set #" . $x . "</u></b> - <b>White ball numbers are: </b>" . $a . " , " . $b . " , " . $c . " , " . $d . " , " . $e . ". <b>Powerball Number is </b>" . $f . ".<br />"; };

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.1.90.0060.00717.48
7.2.120.0260.00714.98
7.2.110.0270.01314.54
7.2.100.0300.00714.84
7.2.90.0350.00014.66
7.2.80.0240.01014.86
7.2.70.0310.01215.20
7.2.60.0480.00615.02
7.2.50.0350.00014.97
7.2.40.0330.01114.80
7.2.30.0300.01014.88
7.2.20.0350.00314.82
7.2.10.0290.00714.76
7.2.00.0150.00917.12
7.1.240.0330.00914.00
7.1.230.0220.00614.02
7.1.220.0260.00413.83
7.1.210.0410.00014.09
7.1.200.0440.01013.87
7.1.190.0180.01414.06
7.1.180.0940.00613.79
7.1.170.0380.01013.87
7.1.160.0250.00913.71
7.1.150.0420.00613.95
7.1.140.0410.00614.02
7.1.130.0300.00313.88
7.1.120.0280.00413.71
7.1.110.0370.00913.52
7.1.100.0570.00314.06
7.1.90.0200.01013.76
7.1.80.0270.01213.96
7.1.70.0210.00715.58
7.1.60.0160.00915.66
7.1.50.0510.01223.46
7.1.40.0290.01023.00
7.1.30.0540.01523.27
7.1.20.0220.01323.19
7.1.10.0360.00814.38
7.1.00.0530.00714.35
7.0.320.0460.00013.68
7.0.310.0430.00413.70
7.0.300.0470.00013.61
7.0.290.0510.00613.47
7.0.280.0410.00613.51
7.0.270.0440.01013.47
7.0.260.0410.00413.47
7.0.250.0510.00613.42
7.0.240.0430.00913.57
7.0.230.0290.01313.62
7.0.220.0300.00713.47
7.0.210.0300.01313.60
7.0.200.0200.00915.30
7.0.190.0310.00614.29
7.0.180.0630.01014.07
7.0.170.0710.00614.02
7.0.160.0410.01013.96
7.0.150.0400.01213.75
7.0.140.0620.00314.08
7.0.130.0380.01114.00
7.0.120.0480.01214.06
7.0.110.0630.01214.01
7.0.100.0640.01013.88
7.0.90.0430.01013.98
7.0.80.0420.00914.04
7.0.70.0450.01013.88
7.0.60.0390.00913.94
7.0.50.0490.01214.09
7.0.40.0450.00813.86
7.0.30.0570.00714.05
7.0.20.0290.01013.89
7.0.10.0340.01314.04
7.0.00.0480.00514.09
5.6.380.0130.00314.12
5.6.370.0150.00414.71
5.6.360.0130.01014.49
5.6.350.0120.00914.27
5.6.340.0210.00614.50
5.6.330.0130.00814.48
5.6.320.0160.00914.45
5.6.310.0220.00014.48
5.6.300.0150.03317.38
5.6.290.0100.03717.57
5.6.280.0090.04017.56
5.6.270.0190.03417.65
5.6.260.0090.03717.49
5.6.250.0230.02717.53
5.6.240.0150.03617.46
5.6.230.0120.03517.59
5.6.220.0110.03217.49
5.6.210.0160.02717.50
5.6.200.0060.05217.58
5.6.190.0120.03217.49
5.6.180.0150.03217.63
5.6.170.0050.03517.73
5.6.160.0100.03417.51
5.6.150.0070.03817.67
5.6.140.0160.02817.31
5.6.130.0060.03717.49
5.6.120.0100.03517.54
5.6.110.0060.05117.27
5.6.100.0070.05117.36
5.6.90.0170.02717.45
5.6.80.0100.03316.97
5.6.70.0150.02717.05
5.6.60.0070.03917.18
5.6.50.0100.03917.28
5.6.40.0080.03517.23
5.6.30.0140.03017.20
5.6.20.0130.03017.24
5.6.10.0130.03717.21
5.6.00.0170.03617.13
5.5.380.0160.00011.42
5.5.370.0120.00611.18
5.5.360.0180.00011.46
5.5.350.0050.01011.04
5.5.340.0120.00410.96
5.5.330.0100.00511.01
5.5.320.0050.01011.22
5.5.310.0130.00011.04
5.5.300.0100.00310.87
5.5.290.0040.01210.97
5.5.280.0060.01010.90
5.5.270.0070.00710.87
5.5.260.0100.00310.87
5.5.250.0140.00310.90
5.5.240.0060.00610.94
5.5.230.0090.00410.87
5.5.220.0090.00911.20
5.5.210.0100.00711.18
5.5.200.0150.00010.98
5.5.190.0090.00911.25
5.5.180.0130.00611.27
5.5.170.0150.01014.18
5.5.160.0190.01210.87
5.5.150.0060.01010.94
5.5.140.0130.00310.99
5.5.130.0220.00510.99
5.5.120.0090.00911.25
5.5.110.0170.00011.24
5.5.100.0100.00610.87
5.5.90.0070.01111.07
5.5.80.0080.00811.06
5.5.70.0170.00010.87
5.5.60.0110.00610.87
5.5.50.0140.00310.87
5.5.40.0060.01210.95
5.5.30.0160.00010.99
5.5.20.0100.00510.95
5.5.10.0030.01010.92
5.5.00.0050.01010.99
5.4.450.0030.01210.88
5.4.440.0060.00610.87
5.4.430.0110.00410.87
5.4.420.0100.00310.87
5.4.410.0070.00710.91
5.4.400.0000.01210.92
5.4.390.0000.01110.90
5.4.380.0070.00711.27
5.4.370.0110.00411.01
5.4.360.0110.00411.37
5.4.350.0100.00811.26
5.4.340.0100.00611.07
5.4.330.0160.00610.90
5.4.320.0150.00310.87
5.4.310.0180.00010.94
5.4.300.0110.00310.87
5.4.290.0080.00811.02
5.4.280.0170.00010.97
5.4.270.0120.00410.87
5.4.260.0060.01010.87
5.4.250.0080.00811.10
5.4.240.0100.00510.87
5.4.230.0070.00810.88
5.4.220.0050.01011.28
5.4.210.0140.00311.02
5.4.200.0100.00710.95
5.4.190.0060.00911.11
5.4.180.0150.00010.87
5.4.170.0070.01011.10
5.4.160.0150.00010.87
5.4.150.0080.00811.14
5.4.140.0180.00011.36
5.4.130.0110.00410.97
5.4.120.0080.00811.05
5.4.110.0130.00510.87
5.4.100.0080.00611.05
5.4.90.0060.00610.93
5.4.80.0050.01011.27
5.4.70.0080.00811.06
5.4.60.0140.00510.87
5.4.50.0120.00311.20
5.4.40.0100.00211.16
5.4.30.0110.00410.97
5.4.20.0110.00611.00
5.4.10.0120.00411.10
5.4.00.0130.00411.19
5.3.290.0110.00010.87
5.3.280.0080.00810.87
5.3.270.0130.00310.87
5.3.260.0080.00810.87
5.3.250.0070.00710.87
5.3.240.0100.00510.87
5.3.230.0090.00610.87
5.3.220.0090.00310.87
5.3.210.0160.00010.87
5.3.200.0150.00010.87
5.3.190.0050.01110.87
5.3.180.0130.00310.87
5.3.170.0110.00410.87
5.3.160.0060.00910.87
5.3.150.0100.00310.87
5.3.140.0060.00910.87
5.3.130.0080.00610.87
5.3.120.0100.00510.87
5.3.110.0160.00010.87
5.3.100.0040.01210.87
5.3.90.0070.00710.87
5.3.80.0060.00910.87
5.3.70.0110.00510.87
5.3.60.0100.00610.87
5.3.50.0080.00810.87
5.3.40.0140.00310.87
5.3.30.0070.01010.87
5.3.20.0150.00010.87
5.3.10.0100.00310.87
5.3.00.0100.00510.87
5.2.170.0090.00410.87
5.2.160.0120.00010.87
5.2.150.0100.00310.87
5.2.140.0040.00810.87
5.2.130.0100.00210.87
5.2.120.0070.00710.87
5.2.110.0030.01010.87
5.2.100.0110.00010.87
5.2.90.0000.01110.87
5.2.80.0080.00410.87
5.2.70.0110.00010.87
5.2.60.0050.00710.87
5.2.50.0120.00010.87
5.2.40.0050.00610.87
5.2.30.0060.00610.87
5.2.20.0100.00210.87
5.2.10.0080.00410.87
5.2.00.0110.00010.87
5.1.60.0030.00610.87
5.1.50.0030.00710.87
5.1.40.0070.00310.87
5.1.30.0090.00010.87
5.1.20.0050.00510.87
5.1.10.0060.00610.87
5.1.00.0080.00310.87
5.0.50.0050.00610.87
5.0.40.0060.00510.87
5.0.30.0050.00510.87
5.0.20.0080.00310.87
5.0.10.0000.00710.87
5.0.00.0030.00610.87
4.4.90.0000.00810.87
4.4.80.0080.00010.87
4.4.70.0040.00410.87
4.4.60.0000.00710.87
4.4.50.0050.00310.87
4.4.40.0050.00310.87
4.4.30.0040.00410.87
4.4.20.0070.00010.87
4.4.10.0080.00410.87
4.4.00.0050.00510.87
4.3.110.0040.00410.87
4.3.100.0040.00410.87
4.3.90.0040.00410.87
4.3.80.0070.00210.87
4.3.70.0040.00210.87
4.3.60.0040.00410.87
4.3.50.0020.00510.87
4.3.40.0080.00010.87
4.3.30.0030.00310.87
4.3.20.0000.00810.87
4.3.10.0040.00410.87
4.3.00.0000.00610.87

preferences:
34.14 ms | 403 KiB | 5 Q