3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = "96f3e04d221ca1b2048cc3b3b844e479f2bd9c80a870628072ee98fd1aa83cd0"; $public_seed = "460670512935"; $round = "9316621"; $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.110.0130.00020.94
8.3.100.0090.00024.06
8.3.90.0120.00926.77
8.3.80.0110.00017.97
8.3.70.0090.00618.30
8.3.60.0110.00416.72
8.3.50.0110.00418.16
8.3.40.0110.00721.93
8.3.30.0030.01020.08
8.3.20.0100.01023.47
8.3.10.0100.01023.39
8.3.00.0130.01020.54
8.2.230.0030.01322.58
8.2.220.0040.00437.54
8.2.210.0080.00026.77
8.2.200.0030.00718.38
8.2.190.0110.00416.63
8.2.180.0120.00918.41
8.2.170.0040.01122.96
8.2.160.0090.00618.91
8.2.150.0150.00620.83
8.2.140.0070.01320.58
8.2.130.0100.01020.52
8.2.120.0110.01119.26
8.2.110.0060.01319.22
8.2.100.0100.01018.89
8.2.90.0150.00418.88
8.2.80.0070.01419.32
8.2.70.0200.00020.32
8.2.60.0090.01318.70
8.2.50.0190.00319.03
8.2.40.0040.01118.73
8.2.30.0090.00618.89
8.2.20.0110.00418.75
8.2.10.0030.01718.82
8.2.00.0180.00318.78
8.1.290.0030.00630.84
8.1.280.0080.00825.92
8.1.270.0110.00422.19
8.1.260.0060.00922.00
8.1.250.0040.01122.12
8.1.240.0110.01118.40
8.1.230.0080.00818.38
8.1.220.0090.00918.99
8.1.210.0030.01218.55
8.1.200.0120.00318.86
8.1.190.0120.00418.67
8.1.180.0120.00618.38
8.1.170.0040.01118.81
8.1.160.0180.00018.44
8.1.150.0140.00318.69
8.1.140.0100.00718.57
8.1.130.0030.01218.74
8.1.120.0120.00418.50
8.1.110.0090.00918.28
8.1.100.0150.00019.73
8.1.90.0040.01118.66
8.1.80.0070.00719.72
8.1.70.0040.01518.48
8.1.60.0090.00618.66
8.1.50.0070.00718.50
8.1.40.0140.00018.48
8.1.30.0110.00418.94
8.1.20.0110.00419.70
8.1.10.0070.00718.61
8.1.00.0110.00318.33

preferences:
34.56 ms | 403 KiB | 5 Q