3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = "39b7d32fcb743c244c569a56d6de4dc27577d6277d6cf155bdcba6d05befcb34"; $lotto = "0422262831"; $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.0070.01319.82
8.4.10.0060.00319.41
8.3.140.0030.01616.75
8.3.130.0190.00816.46
8.3.120.0240.00717.13
8.3.110.0240.00818.08
8.3.100.0310.00718.69
8.3.90.0260.00821.34
8.3.80.0310.00721.42
8.3.70.0290.00719.94
8.3.60.0310.00821.55
8.3.50.0180.00821.53
8.3.40.0220.00721.30
8.3.30.0200.00821.66
8.3.20.0160.00823.28
8.3.10.0140.00823.08
8.3.00.0130.00723.84
8.2.260.0070.00720.00
8.2.250.0090.00317.24
8.2.240.0200.00516.35
8.2.230.0200.00616.57
8.2.220.0210.00619.11
8.2.210.0210.00620.18
8.2.200.0220.00621.39
8.2.190.0240.00619.92
8.2.180.0250.00721.11
8.2.170.0250.00721.03
8.2.160.0210.00721.82
8.2.150.0200.00722.81
8.2.140.0160.00722.66
8.2.130.0140.00723.51
8.2.120.0140.00723.23
8.2.110.0150.00722.96
8.2.100.0160.00722.79
8.2.90.0160.00622.50
8.2.80.0150.00622.62
8.2.70.0140.00635.66
8.2.60.0150.00627.61
8.2.50.0150.00627.23
8.2.40.0140.00626.93
8.2.30.0130.00626.23
8.2.20.0130.00626.43
8.2.10.0130.00626.02
8.2.00.0130.00625.70
8.1.310.0060.00316.52
8.1.300.0230.00416.13
8.1.290.0260.00521.30
8.1.280.0260.00721.09
8.1.270.0140.00623.17
8.1.260.0130.00723.87
8.1.250.0130.00623.89
8.1.240.0130.00622.60
8.1.230.0140.00622.65
8.1.220.0130.00622.61
8.1.210.0140.00622.53
8.1.200.0130.00529.21
8.1.190.0130.00527.79
8.1.180.0130.00527.43
8.1.170.0120.00526.90
8.1.160.0140.00626.43
8.1.150.0130.00626.38
8.1.140.0140.00625.94
8.1.130.0130.00525.69
8.1.120.0130.00525.43
8.1.110.0130.00525.26
8.1.100.0130.00525.15
8.1.90.0130.00525.02
8.1.80.0140.00524.93
8.1.70.0130.00524.81
8.1.60.0130.00524.74
8.1.50.0120.00624.66
8.1.40.0130.00524.43
8.1.30.0120.00524.43
8.1.20.0130.00524.23
8.1.10.0130.00523.79
8.1.00.0120.00623.71
8.0.300.0120.00522.29
8.0.290.0170.00528.08
8.0.280.0160.00526.09
8.0.270.0120.00525.83
8.0.260.0140.00525.32
8.0.250.0130.00525.21
8.0.240.0150.00524.95
8.0.230.0140.00524.83
8.0.220.0130.00524.67
8.0.210.0150.00524.55
8.0.200.0130.00524.52
8.0.190.0140.00524.48
8.0.180.0120.00524.41
8.0.170.0150.00524.02
8.0.160.0120.00523.90
8.0.150.0150.00523.73
8.0.140.0150.00523.54
8.0.130.0140.00523.34
8.0.120.0140.00523.12
8.0.110.0120.00523.17
8.0.100.0130.00523.01
8.0.90.0140.00522.82
8.0.80.0120.00522.76
8.0.70.0110.00522.75
8.0.60.0140.00522.73
8.0.50.0140.00522.72
8.0.30.0110.00621.44
8.0.20.0120.00621.35
8.0.10.0130.00621.18
8.0.00.0110.00621.14
7.4.330.0140.00424.42
7.4.320.0170.00524.80
7.4.300.0170.00524.39
7.4.290.0170.00524.06
7.4.280.0170.00523.55
7.4.270.0170.00523.40
7.4.260.0170.00523.29
7.4.250.0170.00523.08
7.4.240.0160.00523.00
7.4.230.0160.00522.78
7.4.220.0150.00522.66
7.4.210.0150.00522.59
7.4.200.0150.00522.56
7.4.190.0150.00522.56
7.4.180.0150.00522.53
7.4.160.0140.00621.32
7.4.150.0140.00621.01
7.4.140.0140.00620.79
7.4.130.0140.00620.57
7.4.120.0130.00620.42
7.4.110.0130.00620.22
7.4.100.0130.00720.13
7.4.90.0140.00619.99
7.4.80.0140.00719.89
7.4.70.0130.00719.76
7.4.60.0130.00719.69
7.4.50.0130.00719.64
7.4.40.0130.00719.64
7.4.30.0130.00619.70
7.4.20.0130.00719.66
7.4.10.0130.00719.65
7.4.00.0130.00719.74
7.3.330.0160.00523.19
7.3.320.0170.00522.98
7.3.310.0160.00522.92
7.3.300.0150.00522.78
7.3.290.0160.00522.51
7.3.280.0150.00521.67
7.3.270.0150.00620.94
7.3.260.0140.00620.73
7.3.250.0140.00620.52
7.3.240.0140.00620.36
7.3.230.0140.00620.17
7.3.220.0140.00619.97
7.3.210.0140.00619.88
7.3.200.0140.00619.78
7.3.190.0140.00619.66
7.3.180.0140.00719.58
7.3.170.0140.00719.65
7.3.160.0140.00719.58
7.3.150.0140.00719.58
7.3.140.0140.00719.58
7.3.130.0140.00619.58
7.3.120.0130.00619.60
7.3.110.0130.00719.63
7.3.100.0140.00619.57
7.3.90.0140.00619.76
7.3.80.0140.00619.62
7.3.70.0130.00619.65
7.3.60.0140.00619.68
7.3.50.0140.00719.65
7.3.40.0140.00619.67
7.3.30.0140.00619.67
7.3.20.0160.00620.08
7.3.10.0150.00620.03
7.3.00.0150.00620.04
7.2.340.0150.00720.28
7.2.330.0160.00720.03
7.2.320.0150.00719.93
7.2.310.0150.00719.75
7.2.300.0160.00719.75
7.2.290.0150.00719.75
7.2.280.0150.00719.76
7.2.270.0150.00719.74
7.2.260.0150.00719.74
7.2.250.0150.00719.75
7.2.240.0150.00719.75
7.2.230.0150.00719.74
7.2.220.0150.00719.76
7.2.210.0150.00719.74
7.2.200.0160.00719.83
7.2.190.0150.00719.79
7.2.180.0150.00719.78
7.2.170.0150.00719.83
7.2.160.0150.00719.82
7.2.150.0170.00720.26
7.2.140.0170.00720.23
7.2.130.0160.00720.31
7.2.120.0170.00720.29
7.2.110.0170.00720.29
7.2.100.0160.00720.29
7.2.90.0170.00720.24
7.2.80.0170.00720.27
7.2.70.0160.00720.27
7.2.60.0160.00720.26
7.2.50.0170.00720.26
7.2.40.0170.00720.29
7.2.30.0170.00720.29
7.2.20.0170.00720.29
7.2.10.0170.00720.34
7.2.00.0160.00720.32

preferences:
55.96 ms | 403 KiB | 5 Q