3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = "96f3e04d221ca1b2048cc3b3b844e479f2bd9c80a870628072ee98fd1aa83cd0"; $public_seed = "460670512935"; $round = "9316622"; $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.0110.00718.36
8.3.110.0000.00816.63
8.3.100.0080.00316.54
8.3.90.0120.00318.55
8.3.80.0030.00618.30
8.3.70.0190.00016.63
8.3.60.0000.01816.79
8.3.50.0120.00316.68
8.3.40.0090.00921.89
8.3.30.0040.01120.17
8.3.20.0170.00323.49
8.3.10.0140.00021.76
8.3.00.0100.01018.86
8.2.240.0090.00918.86
8.2.230.0090.00020.94
8.2.220.0070.00324.06
8.2.210.0030.00626.77
8.2.200.0060.00316.50
8.2.190.0140.00716.63
8.2.180.0070.01016.38
8.2.170.0140.00722.96
8.2.160.0080.00818.84
8.2.150.0060.00918.92
8.2.140.0070.00720.53
8.2.130.0070.00720.48
8.2.120.0100.00319.26
8.2.110.0170.00319.27
8.2.100.0070.01319.01
8.2.90.0130.00318.86
8.2.80.0110.01119.39
8.2.70.0100.00718.59
8.2.60.0070.01018.75
8.2.50.0030.01019.14
8.2.40.0110.00418.69
8.2.30.0130.00318.66
8.2.20.0040.01118.70
8.2.10.0040.01118.71
8.2.00.0120.00318.78
8.1.300.0060.01317.46
8.1.290.0030.00618.88
8.1.280.0110.00425.92
8.1.270.0100.00322.25
8.1.260.0070.00722.07
8.1.250.0070.00721.84
8.1.240.0140.00018.67
8.1.230.0100.00718.49
8.1.220.0060.01018.82
8.1.210.0070.01118.56
8.1.200.0080.01118.81
8.1.190.0080.01118.63
8.1.180.0080.00818.26
8.1.170.0060.01018.91
8.1.160.0090.00618.48
8.1.150.0090.00618.73
8.1.140.0170.00018.48
8.1.130.0150.00418.86
8.1.120.0150.00018.25
8.1.110.0040.01118.41
8.1.100.0140.00019.74
8.1.90.0110.00418.51
8.1.80.0090.00619.55
8.1.70.0040.01118.33
8.1.60.0070.00718.68
8.1.50.0060.01018.55
8.1.40.0040.01118.66
8.1.30.0070.00718.85
8.1.20.0070.00719.94
8.1.10.0120.00318.69
8.1.00.0090.00618.14

preferences:
35.33 ms | 403 KiB | 5 Q