3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = "63a7db0259ce35e50eb0949e279c420c9fffcff37278e1ae04fea329a7ffeec4"; $public_seed = ""; $round = "6472801"; $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.0150.00618.28
8.3.50.0170.00318.06
8.3.40.0040.01118.84
8.3.30.0000.01718.78
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0030.00626.16
8.2.180.0100.01025.92
8.2.170.0110.00418.87
8.2.160.0000.01522.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00826.16
8.2.110.0100.00722.15
8.2.100.0000.01218.03
8.2.90.0060.00317.75
8.2.80.0080.00018.91
8.2.70.0030.00617.50
8.2.60.0040.00418.04
8.2.50.0080.00018.07
8.2.40.0000.00718.34
8.2.30.0050.00218.05
8.2.20.0000.00718.13
8.2.10.0050.00319.32
8.2.00.0040.00419.30
8.1.280.0110.00725.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00720.25
8.1.230.0110.00017.77
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0090.00017.35
8.1.190.0050.00317.10
8.1.180.0000.00918.10
8.1.170.0040.00418.62
8.1.160.0040.00418.90
8.1.150.0050.00218.82
8.1.140.0060.00318.81
8.1.130.0030.00320.23
8.1.120.0000.00717.49
8.1.110.0080.00017.35
8.1.100.0000.00717.48
8.1.90.0000.00717.47
8.1.80.0000.00817.33
8.1.70.0000.00717.38
8.1.60.0050.00317.50
8.1.50.0040.00417.59
8.1.40.0060.00617.43
8.1.30.0050.00317.68
8.1.20.0050.00317.55
8.1.10.0040.00417.52
8.1.00.0000.00817.50
8.0.300.0080.00018.90
8.0.290.0080.00016.75
8.0.280.0030.00318.48
8.0.270.0040.00418.08
8.0.260.0000.00618.54
8.0.250.0000.00717.06
8.0.240.0040.00417.04
8.0.230.0000.00816.96
8.0.220.0070.00016.96
8.0.210.0000.00716.86
8.0.200.0070.00016.95
8.0.190.0040.00417.01
8.0.180.0000.00716.96
8.0.170.0030.00616.98
8.0.160.0030.00516.93
8.0.150.0070.00016.87
8.0.140.0000.00716.93
8.0.130.0000.00613.43
8.0.120.0000.00816.83
8.0.110.0000.00816.97
8.0.100.0050.00316.86
8.0.90.0050.00216.86
8.0.80.0030.01216.95
8.0.70.0060.01516.89
8.0.60.0090.00616.90
8.0.50.0000.01616.91
8.0.30.0030.01716.91
8.0.20.0030.01317.00
8.0.10.0100.00617.14
8.0.00.0040.01717.05
7.4.330.0040.00015.55
7.4.320.0000.00716.43
7.4.300.0000.00616.52
7.4.290.0030.00316.59
7.4.280.0000.00816.51
7.4.270.0040.00416.58
7.4.260.0000.00513.29
7.4.250.0000.00716.57
7.4.240.0030.00316.38
7.4.230.0030.00616.52
7.4.220.0070.00016.53
7.4.210.0130.00316.66
7.4.200.0160.00016.68
7.4.190.0040.01116.70
7.4.180.0040.01116.63
7.4.160.0000.01416.76
7.4.150.0100.00316.44
7.4.140.0000.01416.62
7.4.130.0000.01416.54
7.4.120.0150.00016.49
7.4.110.0030.01216.57
7.4.100.0090.00616.43
7.4.90.0000.01416.53
7.4.80.0110.00416.50
7.4.70.0060.00916.51
7.4.60.0120.00316.34
7.4.50.0130.00716.39
7.4.40.0130.00716.40
7.4.30.0150.00616.34
7.4.20.0060.00916.47
7.4.10.0030.01716.61
7.4.00.0100.01016.60
7.3.330.0050.00516.23
7.3.320.0000.00613.29
7.3.310.0000.00716.21
7.3.300.0000.00616.50
7.3.290.0090.00616.39
7.3.280.0090.00616.39
7.3.270.0090.01216.34
7.3.260.0040.01216.50
7.3.250.0140.00016.45
7.3.240.0060.00916.36
7.3.230.0100.01016.35
7.3.220.0120.00816.25
7.3.210.0090.01016.22
7.3.200.0000.01416.22
7.3.190.0070.00716.25
7.3.180.0070.00716.32
7.3.170.0090.00616.32
7.3.160.0150.00016.22
7.3.150.0090.01216.29
7.3.140.0090.01016.32
7.3.130.0100.01016.21
7.3.120.0060.00916.24
7.3.110.0090.00616.30
7.3.100.0060.00916.22
7.3.90.0040.01116.59
7.3.80.0140.00016.37
7.3.70.0140.00616.30
7.3.60.0100.01016.42
7.3.50.0070.00716.41
7.3.40.0120.00316.43
7.3.30.0060.00916.36
7.3.20.0100.01016.43
7.3.10.0100.01016.30
7.3.00.0040.01216.23

preferences:
39.42 ms | 401 KiB | 5 Q