3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = "wD1Npmkxz0pTsHXNLojXIoG9DMTxiACRyuHQVkiJCt2wbTR9r8QBfKo1fh8SwhFn"; $public_seed = "676406627421"; $round = "2257"; $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 = 'orange'; elseif ($roll >= 8 and $roll <= 14) $roll_colour = 'black'; 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.0000.00820.92
8.3.110.0160.00816.54
8.3.100.0140.01016.54
8.3.90.0120.01216.05
8.3.80.0080.00416.50
8.3.70.0130.00016.50
8.3.60.0080.00316.38
8.3.50.0130.00016.25
8.3.40.0070.00717.38
8.3.30.0030.01017.50
8.3.20.0070.00517.38
8.3.10.0090.00517.25
8.3.00.0100.00317.11
8.2.240.0040.00418.86
8.2.230.0090.00416.56
8.2.220.0140.00016.71
8.2.210.0080.00316.52
8.2.200.0080.00616.63
8.2.190.0030.01016.63
8.2.180.0060.00616.61
8.2.170.0110.00317.71
8.2.160.0060.00617.50
8.2.150.0090.00317.38
8.2.140.0090.00317.50
8.2.130.0060.00617.63
8.2.120.0040.00717.60
8.2.110.0090.00317.50
8.2.100.0090.00517.50
8.2.90.0120.00017.50
8.2.80.0090.00417.38
8.2.70.0040.01117.37
8.2.60.0000.01217.38
8.2.50.0120.00017.25
8.2.40.0110.00017.13
8.2.30.0140.00017.50
8.2.20.0090.00317.25
8.2.10.0040.00817.63
8.2.00.0090.00317.50
8.1.300.0090.00018.55
8.1.290.0030.00615.88
8.1.280.0070.00316.13
8.1.270.0110.00017.22
8.1.260.0040.01117.13
8.1.250.0180.00016.88
8.1.240.0120.00617.00
8.1.230.0110.00517.00
8.1.220.0100.00717.00
8.1.210.0140.00317.00
8.1.200.0090.00916.88
8.1.190.0130.00416.88
8.1.180.0180.00017.10
8.1.170.0170.00216.63
8.1.160.0130.00917.00
8.1.150.0140.00417.00
8.1.140.0130.00317.00
8.1.130.0140.00317.13
8.1.120.0160.00416.88
8.1.110.0160.00416.63
8.1.100.0050.01117.00
8.1.90.0100.00617.00
8.1.80.0050.01417.22
8.1.70.0110.00717.00
8.1.60.0080.00817.25
8.1.50.0130.00416.75
8.1.40.0170.00417.13
8.1.30.0170.00316.38
8.1.20.0090.00917.10
8.1.10.0170.00016.88
8.1.00.0110.00716.75

preferences:
28.45 ms | 403 KiB | 5 Q