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)) % 29; if ($roll >= 15) $roll = $roll - 10; if ($roll >= 15) $roll = $roll - 10; if ($roll == 0) $roll_colour = 'gold'; elseif ($roll % 2 === 1) $roll_colour = 'black'; elseif ($roll % 2 === 0) $roll_colour = 'red'; 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.4.20.0100.01019.59
8.4.10.0110.00819.42
8.3.150.0140.00716.68
8.3.140.0080.00016.59
8.3.130.0070.01416.51
8.3.120.0080.00020.72
8.3.110.0290.00616.43
8.3.100.0390.00716.17
8.3.90.0330.00516.22
8.3.80.0280.00816.31
8.3.70.0250.01416.38
8.3.60.0290.00516.44
8.3.50.0330.00616.31
8.3.40.0240.00717.44
8.3.30.0200.00917.31
8.3.20.0260.00417.25
8.3.10.0260.00717.25
8.3.00.0110.00319.07
8.2.260.0040.01416.63
8.2.250.0090.00618.35
8.2.240.0080.01218.88
8.2.230.0150.01016.19
8.2.220.0200.00816.36
8.2.210.0170.01116.04
8.2.200.0200.01016.29
8.2.190.0210.00916.36
8.2.180.0220.00516.29
8.2.170.0220.00717.49
8.2.160.0370.00517.50
8.2.150.0200.01217.47
8.2.140.0250.00717.50
8.2.130.0280.00317.31
8.2.120.0300.00117.49
8.2.110.0240.00917.38
8.2.100.0280.00317.54
8.2.90.0260.00617.63
8.2.80.0270.00417.54
8.2.70.0280.00317.31
8.2.60.0270.00417.30
8.2.50.0250.00717.25
8.2.40.0250.00617.31
8.2.30.0300.00217.36
8.2.20.0210.00817.36
8.2.10.0230.00917.25
8.2.00.0240.00517.49
8.1.310.0070.01116.04
8.1.300.0100.00318.24
8.1.290.0210.01315.81
8.1.280.0270.00515.88
8.1.270.0210.01017.19
8.1.260.0330.00517.11
8.1.250.0300.00317.00
8.1.240.0220.00517.06
8.1.230.0210.00417.17
8.1.220.0230.00517.29
8.1.210.0220.00717.11
8.1.200.0210.00817.03
8.1.190.0210.00817.04
8.1.180.0270.00917.00
8.1.170.0350.00317.00
8.1.160.0290.00617.10
8.1.150.0210.01817.06
8.1.140.0270.00916.99
8.1.130.0270.00917.17
8.1.120.0180.01917.34
8.1.110.0260.00517.16
8.1.100.0270.00517.22
8.1.90.0240.01017.17
8.1.80.0150.00417.35
8.1.70.0230.00517.24
8.1.60.0140.00717.30
8.1.50.0290.00417.22
8.1.40.0140.00717.31
8.1.30.0270.01017.30
8.1.20.0250.00617.38
8.1.10.0300.00817.23
8.1.00.0220.00917.17

preferences:
31.2 ms | 403 KiB | 5 Q