3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = "2754f7cc9e9e243711448401ea9d483067138a6b37c70c5d80b6c59943aa6996"; $lotto = "1135567382"; $round_id = "1"; $hash = hash("sha256", $server_seed . "-" . $lotto . "-" . $round_id); $roll = hexdec(substr($hash, 0, 8)) % 15; echo "Round $round_id = $roll"; ?>

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.4.20.0130.00617.79
8.4.10.0100.01020.67
8.3.150.0120.00316.97
8.3.140.0080.00616.46
8.3.130.0060.00316.78
8.3.120.0180.00517.54
8.3.110.0110.00318.68
8.3.100.0140.00616.40
8.3.90.0150.00721.63
8.3.80.0200.00616.42
8.3.70.0170.00516.53
8.3.60.0140.00716.59
8.3.50.0180.00821.79
8.3.40.0230.00617.94
8.3.30.0200.00318.27
8.3.20.0170.00422.33
8.3.10.0130.00722.48
8.3.00.0070.00827.20
8.2.260.0040.01119.04
8.2.250.0060.00318.25
8.2.240.0170.00717.56
8.2.230.0150.00919.43
8.2.220.0190.00326.97
8.2.210.0170.01021.49
8.2.200.0200.00517.36
8.2.190.0260.00516.49
8.2.180.0240.00721.12
8.2.170.0250.00520.12
8.2.160.0220.00820.19
8.2.150.0150.01222.87
8.2.140.0180.00522.50
8.2.130.0100.00726.73
8.2.120.0100.00926.25
8.2.110.0150.00626.20
8.2.100.0120.00725.94
8.2.90.0110.00726.08
8.2.80.0140.00625.96
8.2.70.0110.00625.96
8.2.60.0120.00725.92
8.2.50.0110.00726.09
8.2.40.0120.00426.09
8.2.30.0110.00526.08
8.2.20.0120.00525.97
8.2.10.0100.00526.08
8.2.00.0090.00525.42
8.1.310.0060.01216.41
8.1.300.0210.00517.98
8.1.290.0190.00623.39
8.1.280.0210.00721.04
8.1.270.0160.00922.51
8.1.260.0090.00526.72
8.1.250.0100.00626.88
8.1.240.0110.00526.47
8.1.230.0100.00526.39
8.1.220.0080.00625.92
8.1.210.0090.00626.02
8.1.200.0100.00525.88
8.1.190.0070.00725.90
8.1.180.0090.00426.05
8.1.170.0090.00325.99
8.1.160.0090.00626.04
8.1.150.0090.00526.02
8.1.140.0090.00526.04
8.1.130.0090.00425.20
8.1.120.0100.00424.11
8.1.110.0100.00423.63
8.1.100.0100.00422.60
8.1.90.0080.00522.32
8.1.80.0080.00520.74
8.1.70.0100.00422.06
8.1.60.0100.00422.14
8.1.50.0080.00621.16
8.1.40.0120.00421.18
8.1.30.0110.00521.25
8.1.20.0110.00621.07
8.1.10.0080.00619.76
8.1.00.0110.00520.47
8.0.300.0100.00426.07
8.0.290.0110.00525.79
8.0.280.0110.00625.92
8.0.270.0080.00525.78
8.0.260.0090.00525.04
8.0.250.0080.00424.00
8.0.240.0130.00523.40
8.0.230.0100.00522.30
8.0.220.0080.00521.98
8.0.210.0090.00521.74
8.0.200.0090.00421.84
8.0.190.0090.00521.85
8.0.180.0100.00520.83
8.0.170.0110.00520.77
8.0.160.0100.00520.61
8.0.150.0100.00520.57
8.0.140.0110.00520.31
8.0.130.0100.00519.21
8.0.120.0090.00518.35
8.0.110.0090.00418.22
8.0.100.0080.00518.07
8.0.90.0070.00517.84
8.0.80.0070.00617.82
8.0.70.0080.00517.80
8.0.60.0090.00517.84
8.0.50.0090.00517.84
8.0.30.0090.00817.27
8.0.20.0110.00717.31
8.0.10.0110.00817.30
8.0.00.0110.00817.17
7.4.330.0120.00323.98
7.4.320.0160.00623.26
7.4.300.0130.00521.57
7.4.290.0150.00320.54
7.4.280.0150.00420.54
7.4.270.0130.00420.12
7.4.260.0100.00619.22
7.4.250.0130.00418.28
7.4.240.0110.00418.02
7.4.230.0100.00417.74
7.4.220.0090.00417.69
7.4.210.0100.00417.55
7.4.200.0090.00517.55
7.4.190.0090.00417.61
7.4.180.0090.00517.58
7.4.160.0100.00716.97
7.4.150.0110.00716.88
7.4.140.0110.00716.75
7.4.130.0120.00716.66
7.4.120.0110.00816.62
7.4.110.0110.00816.57
7.4.100.0110.00816.55
7.4.90.0110.00816.53
7.4.80.0120.00816.50
7.4.70.0110.00816.49
7.4.60.0110.00816.47
7.4.50.0110.00816.43
7.4.40.0110.00816.42
7.4.30.0110.00816.45
7.4.20.0110.00816.46
7.4.10.0110.00816.45
7.4.00.0100.00816.48
7.3.330.0130.00619.12
7.3.320.0130.00518.14
7.3.310.0120.00417.87
7.3.300.0090.00517.61
7.3.290.0090.00517.43
7.3.280.0100.00617.05
7.3.270.0110.00716.77
7.3.260.0110.00716.70
7.3.250.0120.00816.59
7.3.240.0120.00716.58
7.3.230.0120.00816.52
7.3.220.0120.00816.46
7.3.210.0120.00816.43
7.3.200.0120.00816.42
7.3.190.0110.00816.40
7.3.180.0120.00816.37
7.3.170.0110.00816.37
7.3.160.0110.00816.37
7.3.150.0110.00816.37
7.3.140.0110.00816.38
7.3.130.0120.00816.38
7.3.120.0110.00816.39
7.3.110.0110.00816.37
7.3.100.0110.00816.36
7.3.90.0110.00816.49
7.3.80.0110.00816.41
7.3.70.0110.00816.40
7.3.60.0110.00816.44
7.3.50.0110.00816.43
7.3.40.0120.00816.42
7.3.30.0110.00816.43
7.3.20.0140.00816.67
7.3.10.0130.00816.63
7.3.00.0140.00816.64
7.2.340.0150.00816.66
7.2.330.0150.00916.64
7.2.320.0150.00816.61
7.2.310.0140.00916.58
7.2.300.0140.00916.58
7.2.290.0140.00816.57
7.2.280.0140.00916.57
7.2.270.0140.00816.57
7.2.260.0140.00916.58
7.2.250.0140.00916.59
7.2.240.0140.00916.56
7.2.230.0140.00916.57
7.2.220.0140.00916.58
7.2.210.0140.00916.57
7.2.200.0140.00916.61
7.2.190.0140.00916.59
7.2.180.0140.00816.60
7.2.170.0130.00916.63
7.2.160.0140.00916.61
7.2.150.0160.00916.90
7.2.140.0150.00916.89
7.2.130.0150.00916.96
7.2.120.0160.00916.92
7.2.110.0160.00916.92
7.2.100.0150.00916.92
7.2.90.0150.00916.88
7.2.80.0160.00916.88
7.2.70.0160.00916.88
7.2.60.0150.00916.88
7.2.50.0150.00916.88
7.2.40.0160.00916.92
7.2.30.0160.00916.93
7.2.20.0160.00916.91
7.2.10.0150.00916.94
7.2.00.0150.00917.04

preferences:
29.26 ms | 403 KiB | 5 Q