3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = "96f3e04d221ca1b2048cc3b3b844e479f2bd9c80a870628072ee98fd1aa83cd0"; $public_seed = "460670512935"; $round = "9316623"; $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.0070.00420.94
8.3.100.0050.00524.06
8.3.90.0030.00626.77
8.3.80.0060.00617.97
8.3.70.0040.01116.38
8.3.60.0150.00016.46
8.3.50.0070.00716.79
8.3.40.0070.01122.06
8.3.30.0040.01120.34
8.3.20.0170.00321.56
8.3.10.0070.01121.90
8.3.00.0100.01018.84
8.2.230.0060.00322.58
8.2.220.0070.00437.54
8.2.210.0060.00626.77
8.2.200.0000.00916.38
8.2.190.0090.00616.58
8.2.180.0040.01516.38
8.2.170.0140.00722.96
8.2.160.0000.01518.90
8.2.150.0070.00719.14
8.2.140.0070.01320.52
8.2.130.0200.00020.53
8.2.120.0090.00619.22
8.2.110.0060.00919.27
8.2.100.0130.00719.02
8.2.90.0070.00718.78
8.2.80.0140.00019.12
8.2.70.0110.00418.82
8.2.60.0140.00018.79
8.2.50.0060.00919.10
8.2.40.0090.00618.83
8.2.30.0170.00318.89
8.2.20.0070.01418.65
8.2.10.0040.01118.60
8.2.00.0140.00018.70
8.1.290.0080.00430.84
8.1.280.0090.00925.92
8.1.270.0030.01322.06
8.1.260.0110.00322.01
8.1.250.0100.00722.14
8.1.240.0060.01218.54
8.1.230.0110.00418.56
8.1.220.0130.00319.04
8.1.210.0160.00318.56
8.1.200.0060.01018.72
8.1.190.0070.01118.58
8.1.180.0070.00718.43
8.1.170.0110.00418.76
8.1.160.0100.00718.50
8.1.150.0130.00318.91
8.1.140.0120.00418.48
8.1.130.0030.01218.74
8.1.120.0160.00018.67
8.1.110.0110.00318.63
8.1.100.0090.00619.69
8.1.90.0040.01118.41
8.1.80.0080.00819.86
8.1.70.0150.00018.56
8.1.60.0140.00018.70
8.1.50.0090.00618.70
8.1.40.0110.00418.68
8.1.30.0040.01118.82
8.1.20.0070.00719.88
8.1.10.0110.00418.57
8.1.00.0140.00018.47

preferences:
29.63 ms | 403 KiB | 5 Q