3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = "96f3e04d221ca1b2048cc3b3b844e479f2bd9c80a870628072ee98fd1aa83cd0"; $public_seed = "460670512935"; $round = "321"; $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.60.0340.01025.56
8.3.50.0130.00825.58
8.3.40.0200.00922.28
8.3.30.0200.00822.73
8.3.20.0170.00823.77
8.3.10.0150.00823.62
8.3.00.0160.00723.97
8.2.180.0320.00925.48
8.2.170.0290.00822.69
8.2.160.0230.00722.92
8.2.150.0190.00822.88
8.2.140.0160.00822.97
8.2.130.0150.00723.62
8.2.120.0150.00723.07
8.2.110.0140.00722.69
8.2.100.0150.00722.56
8.2.90.0180.00722.22
8.2.80.0150.00722.33
8.2.70.0170.00722.18
8.2.60.0170.00722.20
8.2.50.0170.00722.27
8.2.40.0150.00722.17
8.2.30.0150.00722.14
8.2.20.0150.00722.18
8.2.10.0160.00722.22
8.2.00.0150.00722.25
8.1.280.0330.00925.92
8.1.270.0140.00823.74
8.1.260.0140.00724.24
8.1.250.0130.00724.26
8.1.240.0160.00722.10
8.1.230.0150.00722.10
8.1.220.0130.00722.18
8.1.210.0140.00622.32
8.1.200.0130.00722.11
8.1.190.0140.00622.10
8.1.180.0150.00621.99
8.1.170.0140.00622.14
8.1.160.0150.00622.15
8.1.150.0140.00622.51
8.1.140.0150.00622.09
8.1.130.0140.00622.15
8.1.120.0160.00722.10
8.1.110.0150.00722.16
8.1.100.0150.00622.29
8.1.90.0150.00722.13
8.1.80.0160.00622.33
8.1.70.0140.00622.19
8.1.60.0160.00522.17
8.1.50.0150.00622.14
8.1.40.0140.00622.22
8.1.30.0130.00622.29
8.1.20.0150.00622.39
8.1.10.0150.00622.17
8.1.00.0140.00622.12
8.0.300.0130.00621.73
8.0.290.0180.00621.66
8.0.280.0180.00621.65
8.0.270.0140.00621.71
8.0.260.0180.00621.69
8.0.250.0170.00621.75
8.0.240.0190.00521.67
8.0.230.0160.00621.74
8.0.220.0160.00621.65
8.0.210.0180.00621.66
8.0.200.0180.00621.69
8.0.190.0180.00621.73
8.0.180.0150.00621.74
8.0.170.0180.00621.69
8.0.160.0150.00621.76
8.0.150.0180.00621.67
8.0.140.0190.00621.66
8.0.130.0170.00621.72
8.0.120.0180.00621.64
8.0.110.0170.00621.72
8.0.100.0160.00621.63
8.0.90.0190.00621.63
8.0.80.0180.00621.70
8.0.70.0130.00621.79
8.0.60.0190.00621.68
8.0.50.0190.00621.63
8.0.30.0120.00621.83
8.0.20.0160.00621.77
8.0.10.0180.00521.75

preferences:
49.57 ms | 400 KiB | 5 Q