3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = "96f3e04d221ca1b2048cc3b3b844e479f2bd9c80a870628072ee98fd1aa83cd0"; $public_seed = "460670512935"; $round = "9316631"; $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.0060.00920.57
8.3.110.0040.00420.94
8.3.100.0040.00724.06
8.3.90.0100.00026.77
8.3.80.0030.00617.97
8.3.70.0120.00316.61
8.3.60.0040.01116.69
8.3.50.0120.00316.80
8.3.40.0150.00321.64
8.3.30.0060.00920.04
8.3.20.0160.00623.39
8.3.10.0070.01123.48
8.3.00.0150.00320.59
8.2.240.0040.00416.93
8.2.230.0040.00922.58
8.2.220.0040.00437.54
8.2.210.0120.00426.77
8.2.200.0000.00916.63
8.2.190.0140.00716.58
8.2.180.0150.00316.38
8.2.170.0040.01122.96
8.2.160.0040.01118.88
8.2.150.0110.00420.74
8.2.140.0070.01322.21
8.2.130.0110.00420.53
8.2.120.0070.01319.10
8.2.110.0100.01019.27
8.2.100.0090.00618.85
8.2.90.0040.01119.00
8.2.80.0030.01019.27
8.2.70.0140.00718.77
8.2.60.0170.00318.54
8.2.50.0120.00819.06
8.2.40.0140.00418.78
8.2.30.0190.00318.70
8.2.20.0120.00318.70
8.2.10.0170.00318.84
8.2.00.0070.00718.79
8.1.300.0140.00318.41
8.1.290.0060.00330.84
8.1.280.0140.00725.92
8.1.270.0100.01022.23
8.1.260.0030.01722.07
8.1.250.0100.00323.96
8.1.240.0140.00020.30
8.1.230.0120.00320.26
8.1.220.0040.01120.64
8.1.210.0090.00618.60
8.1.200.0060.01218.69
8.1.190.0140.00018.68
8.1.180.0100.00318.43
8.1.170.0070.00718.69
8.1.160.0100.01018.39
8.1.150.0130.00718.81
8.1.140.0040.01118.58
8.1.130.0170.00018.86
8.1.120.0060.00918.68
8.1.110.0070.00718.60
8.1.100.0070.00719.73
8.1.90.0140.00418.49
8.1.80.0070.01019.72
8.1.70.0120.00318.63
8.1.60.0140.00418.80
8.1.50.0110.00718.68
8.1.40.0120.00618.68
8.1.30.0070.01118.94
8.1.20.0070.01319.88
8.1.10.0090.00918.56
8.1.00.0040.01818.44

preferences:
27.45 ms | 403 KiB | 5 Q