3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = "63a7db0259ce35e50eb0949e279c420c9fffcff37278e1ae04fea329a7ffeec4"; $public_seed = ""; $round = "6472802"; $hash = hash('sha256', $server_seed . "-" . $public_seed . "-" . $round); $roll = hexdec(substr($hash, 0, 8)) % 15; if ($roll == 0) $roll_colour == 'bonus'; 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.0170.00318.56
8.3.50.0100.01016.68
8.3.40.0100.00318.86
8.3.30.0060.00918.60
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0020.00526.16
8.2.180.0110.01125.92
8.2.170.0130.00718.94
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0080.00026.16
8.2.110.0070.00322.20
8.2.100.0110.00017.77
8.2.90.0040.00419.07
8.2.80.0090.00017.97
8.2.70.0060.00317.75
8.2.60.0050.00317.80
8.2.50.0030.00518.07
8.2.40.0000.00718.34
8.2.30.0000.00717.96
8.2.20.0070.00018.19
8.2.10.0040.00419.43
8.2.00.0050.00219.20
8.1.280.0120.00325.92
8.1.270.0000.00823.99
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0040.00423.96
8.1.230.0060.00617.77
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0070.00017.23
8.1.180.0040.00418.10
8.1.170.0050.00318.53
8.1.160.0040.00418.91
8.1.150.0000.00718.89
8.1.140.0030.00618.77
8.1.130.0070.00020.28
8.1.120.0070.00017.46
8.1.110.0080.00017.48
8.1.100.0050.00217.51
8.1.90.0070.00017.52
8.1.80.0070.00017.55
8.1.70.0000.00717.50
8.1.60.0060.00317.63
8.1.50.0030.00617.55
8.1.40.0070.00417.57
8.1.30.0040.00417.58
8.1.20.0030.00517.61
8.1.10.0080.00017.41
8.1.00.0040.00417.30
8.0.300.0000.00718.77
8.0.290.0090.00016.74
8.0.280.0070.00018.38
8.0.270.0070.00018.04
8.0.260.0030.00318.49
8.0.250.0070.00017.04
8.0.240.0030.00316.92
8.0.230.0000.00716.92
8.0.220.0000.00716.99
8.0.210.0000.00716.90
8.0.200.0030.00317.09
8.0.190.0080.00016.98
8.0.180.0050.00317.02
8.0.170.0030.00517.04
8.0.160.0030.00616.98
8.0.150.0000.00716.96
8.0.140.0080.00016.96
8.0.130.0000.00613.33
8.0.120.0040.00416.97
8.0.110.0000.00816.96
8.0.100.0000.00716.84
8.0.90.0040.00416.95
8.0.80.0130.00317.00
8.0.70.0090.00616.92
8.0.60.0030.01216.84
8.0.50.0040.01116.86
8.0.30.0000.01516.94
8.0.20.0090.00616.94
8.0.10.0130.00317.11
8.0.00.0060.01617.11
7.4.330.0000.00615.55
7.4.320.0030.00316.61
7.4.300.0000.00716.63
7.4.290.0000.00716.33
7.4.280.0040.00416.42
7.4.270.0000.00716.59
7.4.260.0030.00313.31
7.4.250.0040.00416.52
7.4.240.0030.00316.52
7.4.230.0050.00316.42
7.4.220.0000.00716.71
7.4.210.0040.01116.60
7.4.200.0100.00316.68
7.4.190.0110.00416.61
7.4.180.0030.01116.68
7.4.160.0120.00316.75
7.4.150.0130.00716.39
7.4.140.0090.00916.43
7.4.130.0100.00716.43
7.4.120.0090.01216.50
7.4.110.0080.01216.64
7.4.100.0150.00616.50
7.4.90.0070.01416.51
7.4.80.0030.01516.54
7.4.70.0130.00916.65
7.4.60.0100.01116.46
7.4.50.0080.00916.44
7.4.40.0070.01316.42
7.4.30.0070.01416.63
7.4.20.0060.01016.47
7.4.10.0180.00316.52
7.4.00.0120.01016.46
7.3.330.0050.00216.47
7.3.320.0050.00013.24
7.3.310.0000.00716.57
7.3.300.0060.00016.39
7.3.290.0050.01116.39
7.3.280.0070.00516.38
7.3.270.0050.00216.41
7.3.260.0130.00716.43
7.3.250.0100.01316.49
7.3.240.0130.00316.34
7.3.230.0040.01416.35
7.3.220.0160.00016.20
7.3.210.0100.00716.24
7.3.200.0150.00316.21
7.3.190.0030.01316.26
7.3.180.0090.00616.30
7.3.170.0090.01116.27
7.3.160.0130.01016.32
7.3.150.0030.01716.30
7.3.140.0070.01416.26
7.3.130.0130.00716.30
7.3.120.0040.01516.33
7.3.110.0090.01216.21
7.3.100.0000.01616.25
7.3.90.0130.00716.61
7.3.80.0030.01716.34
7.3.70.0070.00716.37
7.3.60.0090.01216.41
7.3.50.0050.02216.43
7.3.40.0070.01316.49
7.3.30.0100.00716.41
7.3.20.0070.01616.41
7.3.10.0130.00316.27
7.3.00.0070.01416.37

preferences:
50.66 ms | 400 KiB | 5 Q