3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* * Fill in all five below and click blue 'eval();' button below textarea. * * ------------------ */ $server_seed_hash = ''; #SHA-256 Server SEED $server_seed = ''; #Server SEED $client_seed = ''; #Client SEED $nonce = ''; #NONCE /* ------------------ */ if ($server_seed_hash == '' || $server_seed == '' || $client_seed == '' || $nonce == '') exit("Fill in details"); $server_seed_sha256 = hash('sha256', $server_seed); $hash = hash('sha256', $server_seed.'|'.$client_seed.'|'.$nonce); $num = hexdec(substr($hash, 0, 8)) % 10000 + 1; echo "Hash matches: ".($server_seed_hash == $server_seed_sha256 ? 'Yes': 'No')."\n"; echo "Generated number: $num";

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.0100.01019.04
8.4.10.0060.00319.43
8.3.140.0080.00016.47
8.3.130.0080.00018.30
8.3.120.0070.01118.82
8.3.110.0000.00820.94
8.3.100.0090.00024.06
8.3.90.0030.00626.77
8.3.80.0060.00319.36
8.3.70.0040.01418.43
8.3.60.0070.01118.36
8.3.50.0030.01416.33
8.3.40.0060.00918.47
8.3.30.0140.00018.67
8.3.20.0000.00824.18
8.3.10.0050.00324.66
8.3.00.0030.00526.16
8.2.260.0060.00916.83
8.2.250.0140.00318.39
8.2.240.0080.00317.06
8.2.230.0080.00022.58
8.2.220.0060.00337.54
8.2.210.0050.00326.77
8.2.200.0000.00818.88
8.2.190.0120.00916.63
8.2.180.0110.00425.92
8.2.170.0040.01118.91
8.2.160.0110.00422.96
8.2.150.0070.00025.66
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0040.00419.89
8.2.110.0070.00422.12
8.2.100.0080.00417.84
8.2.90.0080.00518.20
8.2.80.0080.00518.37
8.2.70.0090.00518.26
8.2.60.0100.00418.20
8.2.50.0050.00818.43
8.2.40.0050.00719.96
8.2.30.0080.00419.07
8.2.20.0030.00918.35
8.2.10.0080.00519.04
8.2.00.0070.00519.07
8.1.310.0150.00316.52
8.1.300.0040.00417.86
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0060.00323.73
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00324.00
8.1.230.0110.00019.06
8.1.220.0070.00518.28
8.1.210.0050.00518.77
8.1.200.0090.00518.01
8.1.190.0060.00718.00
8.1.180.0120.00118.43
8.1.170.0100.00318.63
8.1.160.0030.00919.70
8.1.150.0070.00618.85
8.1.140.0060.00618.79
8.1.130.0090.00319.46
8.1.120.0090.00518.06
8.1.110.0040.00818.11
8.1.100.0070.00618.14
8.1.90.0080.00418.05
8.1.80.0070.00618.12
8.1.70.0070.00518.06
8.1.60.0120.00318.14
8.1.50.0090.00418.13
8.1.40.0070.00618.15
8.1.30.0080.00618.22
8.1.20.0080.00617.95
8.1.10.0120.00617.87
8.1.00.0110.00617.87
8.0.300.0150.00318.77
8.0.290.0110.00217.82
8.0.280.0070.00518.61
8.0.270.0060.00617.86
8.0.260.0080.00318.63
8.0.250.0050.00617.89
8.0.240.0000.01217.85
8.0.230.0100.00217.83
8.0.220.0060.00517.80
8.0.210.0100.00317.80
8.0.200.0090.00317.89
8.0.190.0050.00817.91
8.0.180.0100.00217.88
8.0.170.0120.00017.89
8.0.160.0090.00417.82
8.0.150.0120.00317.45
8.0.140.0120.00317.50
8.0.130.0110.00316.32
8.0.120.0100.00517.54
8.0.110.0060.00817.51
8.0.100.0140.00217.49
8.0.90.0040.00517.04
8.0.80.0050.00617.01
8.0.70.0040.00517.00
8.0.60.0060.00417.02
8.0.50.0050.00417.04
8.0.30.0080.00517.01
8.0.20.0080.00617.08
8.0.10.0100.00617.12
8.0.00.0090.00717.15
7.4.330.0040.00417.16
7.4.320.0080.00317.66
7.4.300.0050.00617.67
7.4.290.0080.00417.57
7.4.280.0100.00217.63
7.4.270.0090.00917.20
7.4.260.0130.00216.18
7.4.250.0150.00217.29
7.4.240.0140.00317.26
7.4.230.0120.00417.20
7.4.220.0060.00316.71
7.4.210.0060.00416.74
7.4.200.0050.00416.73
7.4.190.0060.00316.76
7.4.180.0050.00416.71
7.4.160.0080.00616.72
7.4.150.0080.00516.69
7.4.140.0090.00516.60
7.4.130.0090.00616.52
7.4.120.0090.00616.55
7.4.110.0080.00616.57
7.4.100.0070.00716.64
7.4.90.0100.00516.60
7.4.80.0090.00516.61
7.4.70.0070.00616.59
7.4.60.0090.00616.56
7.4.50.0080.00616.50
7.4.40.0080.00516.48
7.4.30.0080.00616.62
7.4.20.0080.00616.57
7.4.10.0070.00616.56
7.4.00.0080.00516.62
7.3.330.0070.00617.09
7.3.320.0120.00216.03
7.3.310.0070.00617.07
7.3.300.0100.00417.01
7.3.290.0070.00416.39
7.3.280.0100.00416.41
7.3.270.0090.00616.40
7.3.260.0090.00416.36
7.3.250.0090.00516.36
7.3.240.0080.00616.34
7.3.230.0090.00616.38
7.3.220.0090.00516.32
7.3.210.0080.00616.29
7.3.200.0070.00616.34
7.3.190.0110.00416.35
7.3.180.0100.00416.34
7.3.170.0090.00516.34
7.3.160.0100.00416.32
7.3.150.0090.00616.34
7.3.140.0070.00716.35
7.3.130.0090.00516.35
7.3.120.0080.00616.32
7.3.110.0090.00516.24
7.3.100.0090.00516.30
7.3.90.0090.00416.56
7.3.80.0090.00516.36
7.3.70.0090.00416.42
7.3.60.0090.00516.51
7.3.50.0090.00516.50
7.3.40.0100.00416.43
7.3.30.0090.00616.46
7.3.20.0090.00617.74
7.3.10.0090.00517.67
7.3.00.0090.00517.68

preferences:
68.97 ms | 403 KiB | 5 Q