3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = "2697cc68ec98b327f6f945e6153d9ebd02f675e88f09998fd6149467e334dcad"; $public_seed = "9316595"; $round = "9316597"; $hash = hash('sha256', $server_seed . "-" . $public_seed . "-" . $round); $roll = hexdec(substr($hash, 0, 8)) % 15; if ($roll == 0) $roll_colour = 'bonus'; elseif ($roll >= 1 and $roll <= 7) $roll_colour = 'T'; elseif ($roll >= 8 and $roll <= 14) $roll_colour = 'CT'; echo("Roll: $roll\nColour: $roll_colour");

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.120.0070.00418.94
8.3.110.0100.00620.94
8.3.100.0040.00424.06
8.3.90.0040.00726.77
8.3.80.0060.00318.43
8.3.70.0090.01216.63
8.3.60.0130.01016.59
8.3.50.0150.00316.33
8.3.40.0160.00321.95
8.3.30.0070.00719.96
8.3.20.0080.01521.57
8.3.10.0130.01021.96
8.3.00.0110.01118.82
8.2.240.0060.00917.18
8.2.230.0100.00022.58
8.2.220.0090.00037.54
8.2.210.0090.00026.77
8.2.200.0030.00718.29
8.2.190.0110.00416.58
8.2.180.0130.00716.50
8.2.170.0000.01522.96
8.2.160.0100.00718.86
8.2.150.0170.00319.10
8.2.140.0070.01420.38
8.2.130.0070.01320.52
8.2.120.0150.00419.45
8.2.110.0070.01119.40
8.2.100.0110.00718.88
8.2.90.0120.00918.68
8.2.80.0080.00821.13
8.2.70.0060.00920.50
8.2.60.0150.00018.77
8.2.50.0170.00318.93
8.2.40.0080.00818.78
8.2.30.0100.01018.54
8.2.20.0040.01218.63
8.2.10.0190.00318.71
8.2.00.0040.01118.65
8.1.300.0090.00918.25
8.1.290.0040.00430.84
8.1.280.0140.00725.92
8.1.270.0110.00922.19
8.1.260.0040.01122.03
8.1.250.0100.01022.11
8.1.240.0120.00918.52
8.1.230.0140.01018.32
8.1.220.0120.00618.87
8.1.210.0070.01018.63
8.1.200.0130.00918.67
8.1.190.0170.00318.55
8.1.180.0130.00318.29
8.1.170.0140.00418.77
8.1.160.0140.00318.47
8.1.150.0110.00418.69
8.1.140.0120.00318.50
8.1.130.0110.00418.82
8.1.120.0070.00718.60
8.1.110.0070.00718.58
8.1.100.0090.00619.74
8.1.90.0090.00618.68
8.1.80.0040.01119.82
8.1.70.0040.01118.55
8.1.60.0140.00018.46
8.1.50.0110.00418.67
8.1.40.0140.00018.72
8.1.30.0070.00718.87
8.1.20.0080.00820.00
8.1.10.0060.00918.55
8.1.00.0090.00618.52

preferences:
37.52 ms | 403 KiB | 5 Q