3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = "96f3e04d221ca1b2048cc3b3b844e479f2bd9c80a870628072ee98fd1aa83cd0"; $public_seed = "460670512935"; $round = "321"; $hash = hash('sha256', $server_seed . "02fe2175fc7556b82592f066738d31f5427f4f21b07a1ad8806e35f699eab0f8" . $public_seed . "2405250708" . $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");
based on GbGsM

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.0.00.0120.00816.77
7.4.130.0150.00716.45
7.4.120.0160.00816.47
7.4.110.0130.00816.48
7.4.100.0110.01016.44
7.4.90.0120.00916.40
7.4.80.0110.01016.45
7.4.70.0120.00816.42
7.4.60.0110.00916.41
7.4.50.0130.00816.45
7.4.40.0130.00816.39
7.4.30.0100.01116.47
7.4.20.0120.00916.38
7.4.10.0120.00916.48
7.4.00.0110.00816.48
7.3.260.0170.00716.52
7.3.250.0120.00916.36
7.3.240.0120.01016.39
7.3.230.0130.00916.31
7.3.220.0140.00716.34
7.3.210.0120.00916.38
7.3.200.0120.00916.41
7.3.190.0110.00916.42
7.3.180.0120.00816.37
7.3.170.0110.01016.38
7.3.160.0110.01016.38
7.3.150.0130.00916.33
7.3.140.0130.00816.37
7.3.130.0140.00616.38
7.3.120.0130.00716.39
7.3.110.0110.01016.35
7.3.100.0130.00816.36
7.3.90.0130.00816.35
7.3.80.0120.00816.40
7.3.70.0140.00816.33
7.3.60.0110.01016.32
7.3.50.0100.01016.31
7.3.40.0120.00816.34
7.3.30.0150.00816.38
7.3.20.0160.00816.54
7.3.10.0300.00916.55
7.3.00.0130.00916.56
7.2.340.0150.00916.62
7.2.330.0150.01016.60
7.2.320.0140.01216.58
7.2.310.0150.01016.56
7.2.300.0140.01016.58
7.2.290.0130.01116.61
7.2.280.0160.00816.63
7.2.270.0150.00916.61
7.2.260.0150.00916.56
7.2.250.0140.01016.57
7.2.240.0160.01016.58
7.2.230.0150.00916.57
7.2.220.0160.00916.57
7.2.210.0150.00816.58
7.2.200.0160.01016.57
7.2.190.0170.00916.55
7.2.180.0150.00916.61
7.2.170.0130.01216.56
7.2.160.0140.00916.49
7.2.150.0160.01016.82
7.2.140.0260.01016.84
7.2.130.0320.01016.84
7.2.120.0130.01116.81
7.2.110.0150.00916.75
7.2.100.0160.01016.81
7.2.90.0140.01016.77
7.2.80.0150.01216.73
7.2.70.0140.01216.78
7.2.60.0140.01116.80
7.2.50.0150.01016.80
7.2.40.0150.00816.96
7.2.30.0170.00916.95
7.2.20.0160.01016.91
7.2.10.0160.00816.89
7.2.00.0150.00916.97