3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed ="c847a04db629e7621b2fd409ad1d8a8286f5091e6976a832df38caee2c4dd871"; $public_seed = "460670512935"; $round = "462"; $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.0130.00320.53
8.3.110.0120.00620.94
8.3.100.0050.00316.63
8.3.90.0050.00226.77
8.3.80.0050.00518.55
8.3.70.0430.00716.63
8.3.60.0390.01316.73
8.3.50.0070.01418.53
8.3.40.0310.00917.63
8.3.30.0310.01217.25
8.3.20.0370.00717.25
8.3.10.0320.01017.50
8.3.00.0240.01017.50
8.2.240.0060.01217.29
8.2.230.0040.00422.58
8.2.220.0040.00424.06
8.2.210.0030.00626.77
8.2.200.0030.00716.50
8.2.190.0260.00416.58
8.2.180.0250.00016.58
8.2.170.0240.00417.50
8.2.160.0210.00317.38
8.2.150.0260.00017.38
8.2.140.0210.00617.13
8.2.130.0200.00317.63
8.2.120.0190.00417.63
8.2.110.0190.00517.63
8.2.100.0220.00417.50
8.2.90.0240.00317.50
8.2.80.0120.01517.50
8.2.70.0280.00517.49
8.2.60.0200.00717.38
8.2.50.0260.00017.35
8.2.40.0170.00817.50
8.2.30.0190.00617.47
8.2.20.0210.00417.50
8.2.10.0230.00417.63
8.2.00.0200.00717.38
8.1.300.0040.01118.59
8.1.290.0000.00930.84
8.1.280.0350.00616.58
8.1.270.0270.01116.88
8.1.260.0150.00917.50
8.1.250.0170.00817.11
8.1.240.0190.00617.25
8.1.230.0170.00217.35
8.1.220.0190.00017.13
8.1.210.0200.00717.13
8.1.200.0250.01116.75
8.1.190.0350.00317.00
8.1.180.0250.01517.09
8.1.170.0380.00317.23
8.1.160.0310.01417.34
8.1.150.0310.00917.13
8.1.140.0270.01017.00
8.1.130.0360.00717.22
8.1.120.0240.01017.22
8.1.110.0150.00917.24
8.1.100.0230.00316.97
8.1.90.0260.01017.13
8.1.80.0220.01317.22
8.1.70.0360.00417.13
8.1.60.0270.00617.22
8.1.50.0210.01217.34
8.1.40.0380.00317.23
8.1.30.0310.00617.12
8.1.20.0400.00317.47
8.1.10.0280.01117.25
8.1.00.0130.01317.00

preferences:
31.75 ms | 403 KiB | 5 Q