3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = "96f3e04d221ca1b2048cc3b3b844e479f2bd9c80a870628072ee98fd1aa83cd0"; $public_seed = "460670512935"; $round = "9316626"; $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.0080.00016.54
8.3.100.0160.00016.47
8.3.90.0040.00426.77
8.3.80.0060.00317.97
8.3.70.0080.00816.50
8.3.60.0060.00916.35
8.3.50.0130.00318.57
8.3.40.0070.01121.82
8.3.30.0040.01120.35
8.3.20.0080.00821.73
8.3.10.0110.00421.82
8.3.00.0090.00618.84
8.2.230.0090.00020.94
8.2.220.0090.00024.06
8.2.210.0100.00626.77
8.2.200.0090.00018.18
8.2.190.0070.00716.58
8.2.180.0070.00716.50
8.2.170.0150.00022.96
8.2.160.0120.00318.55
8.2.150.0150.00618.92
8.2.140.0100.01020.47
8.2.130.0040.01420.40
8.2.120.0100.01019.25
8.2.110.0130.00619.27
8.2.100.0100.01018.89
8.2.90.0070.00719.01
8.2.80.0120.00319.41
8.2.70.0140.00718.79
8.2.60.0140.00718.77
8.2.50.0150.00019.15
8.2.40.0180.00318.83
8.2.30.0150.00018.72
8.2.20.0070.00718.85
8.2.10.0060.01618.83
8.2.00.0130.00718.65
8.1.290.0060.00330.84
8.1.280.0140.00025.92
8.1.270.0080.00522.02
8.1.260.0110.00321.99
8.1.250.0090.00622.19
8.1.240.0070.01018.57
8.1.230.0080.01118.53
8.1.220.0090.00619.00
8.1.210.0130.00718.55
8.1.200.0090.00618.57
8.1.190.0070.00718.68
8.1.180.0110.00318.18
8.1.170.0060.00818.73
8.1.160.0170.00018.34
8.1.150.0110.00618.77
8.1.140.0100.00718.61
8.1.130.0140.00018.73
8.1.120.0150.00018.52
8.1.110.0070.00718.59
8.1.100.0110.00419.68
8.1.90.0070.00718.55
8.1.80.0100.00319.88
8.1.70.0120.00318.50
8.1.60.0110.00418.71
8.1.50.0030.01218.54
8.1.40.0000.01418.68
8.1.30.0100.00318.99
8.1.20.0070.00719.79
8.1.10.0120.00318.60
8.1.00.0070.01418.34

preferences:
26.49 ms | 403 KiB | 5 Q