3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = "beb83c000e115e9944606f8e1b74b3a7e73ef99bb4896389ae2930b37307d771"; $public_seed = "3329391827"; $round = "6175260"; $hash = unhashed('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.0130.01318.30
8.3.50.0060.01618.17
8.3.40.0140.01018.91
8.3.30.0090.00618.84
8.3.20.0060.00924.18
8.3.10.0090.00924.66
8.3.00.0050.00326.16
8.2.180.0070.00725.92
8.2.170.0040.01518.91
8.2.160.0080.00622.96
8.2.150.0150.00425.66
8.2.140.0090.00924.66
8.2.130.0090.00026.16
8.2.120.0160.00326.35
8.2.110.0060.00322.07
8.2.100.0040.00819.45
8.2.90.0040.00417.75
8.2.80.0000.00818.96
8.2.70.0040.00417.50
8.2.60.0000.00817.80
8.2.50.0040.00418.05
8.2.40.0040.00418.03
8.2.30.0040.00419.86
8.2.20.0020.00518.05
8.2.10.0050.00321.09
8.2.00.0070.00019.23
8.1.280.0110.01125.92
8.1.270.0130.00623.99
8.1.260.0040.00428.09
8.1.250.0030.00728.09
8.1.240.0030.00720.70
8.1.230.0070.00417.70
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0080.00017.22
8.1.180.0080.00018.10
8.1.170.0040.00418.53
8.1.160.0040.00419.00
8.1.150.0040.00418.82
8.1.140.0040.00418.79
8.1.130.0070.00020.11
8.1.120.0000.00717.34
8.1.110.0070.00017.32
8.1.100.0040.00417.34
8.1.90.0040.00417.25
8.1.80.0050.00517.38
8.1.70.0030.00517.42
8.1.60.0000.00717.53
8.1.50.0040.00417.53
8.1.40.0060.00317.39
8.1.30.0000.00817.47
8.1.20.0050.00317.51
8.1.10.0080.00017.56
8.1.00.0030.00517.53
8.0.300.0000.00720.32
8.0.290.0030.00516.75
8.0.280.0070.00018.29
8.0.270.0000.00718.05
8.0.260.0000.00618.32
8.0.250.0000.00716.95
8.0.240.0000.00616.93
8.0.230.0000.00716.92
8.0.220.0060.00016.84
8.0.210.0040.00416.77
8.0.200.0000.00716.96
8.0.190.0000.00716.84
8.0.180.0070.00016.89
8.0.170.0000.00816.91
8.0.160.0000.00716.94
8.0.150.0040.00416.68
8.0.140.0040.00416.77
8.0.130.0000.00613.32
8.0.120.0040.00416.84
8.0.110.0060.00316.80
8.0.100.0040.00416.68
8.0.90.0030.00316.83
8.0.80.0090.00716.85
8.0.70.0070.00017.00
8.0.60.0040.00416.78
8.0.50.0070.00016.83
8.0.30.0040.01216.88
8.0.20.0120.00616.80
8.0.10.0120.01216.94
8.0.00.0070.01017.06
7.4.330.0030.00315.55
7.4.320.0030.00316.53
7.4.300.0030.00316.52
7.4.290.0070.00016.52
7.4.280.0050.00516.48
7.4.270.0000.00716.62
7.4.260.0030.00313.32
7.4.250.0030.00516.53
7.4.240.0010.00616.44
7.4.230.0050.00316.55
7.4.220.0050.00216.42
7.4.210.0030.01516.57
7.4.200.0080.00016.49
7.4.160.0070.01416.76
7.4.150.0060.01016.70
7.4.140.0060.00916.50
7.4.130.0070.01416.49
7.4.120.0040.01116.55
7.4.110.0130.00616.43
7.4.100.0040.01116.48
7.4.90.0110.00316.34
7.4.80.0120.00316.49
7.4.70.0070.01316.52
7.4.60.0070.00716.42
7.4.50.0030.01616.29
7.4.40.0050.01416.54
7.4.30.0110.00716.46
7.4.20.0080.01116.39
7.4.10.0120.00416.39
7.4.00.0060.01316.59
7.3.330.0030.00316.14
7.3.320.0030.00313.24
7.3.310.0000.00716.25
7.3.300.0000.00616.21
7.3.290.0080.01116.26
7.3.270.0120.00416.27
7.3.260.0060.01616.19
7.3.250.0110.01116.30
7.3.240.0070.00916.35
7.3.230.0150.01116.28
7.3.220.0070.01016.18
7.3.210.0080.00916.23
7.3.200.0160.00016.19
7.3.190.0060.00916.22
7.3.180.0100.00716.24
7.3.170.0100.01016.20
7.3.160.0180.00316.19
7.3.150.0120.00916.30
7.3.140.0130.00716.22
7.3.130.0060.01316.19
7.3.120.0110.00816.23
7.3.110.0000.01916.11
7.3.100.0080.01116.13
7.3.90.0180.00616.57
7.3.80.0000.01616.15
7.3.70.0070.00716.21
7.3.60.0100.00716.24
7.3.50.0070.00716.25
7.3.40.0070.00716.40
7.3.30.0120.00616.29
7.3.20.0150.00316.37
7.3.10.0060.00916.35
7.3.00.0030.01316.21

preferences:
34.15 ms | 400 KiB | 5 Q