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; 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.3.140.0000.00816.61
8.3.130.0070.00316.77
8.3.120.0050.00318.86
8.3.110.0080.00020.94
8.3.100.0040.00424.06
8.3.90.0030.00526.77
8.3.80.0060.00319.36
8.3.70.0060.00916.63
8.3.60.0150.00016.38
8.3.50.0110.00416.29
8.3.40.0060.00918.52
8.3.30.0060.01218.71
8.3.20.0040.00424.18
8.3.10.0060.00324.66
8.3.00.0040.00426.16
8.2.250.0060.00316.62
8.2.240.0060.00318.61
8.2.230.0080.00022.58
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0030.00618.88
8.2.190.0110.00716.63
8.2.180.0150.00325.92
8.2.170.0170.00322.96
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0050.00326.35
8.2.110.0060.00319.18
8.2.100.0090.00317.84
8.2.90.0000.00818.03
8.2.80.0040.00419.16
8.2.70.0000.00817.63
8.2.60.0080.00018.04
8.2.50.0030.00618.07
8.2.40.0070.00018.16
8.2.30.0040.00418.11
8.2.20.0040.00418.12
8.2.10.0070.00019.21
8.2.00.0000.00719.30
8.1.300.0090.00016.02
8.1.290.0040.00430.84
8.1.280.0100.00725.92
8.1.270.0000.00723.99
8.1.260.0040.00428.09
8.1.250.0070.00728.09
8.1.240.0060.00322.10
8.1.230.0080.00422.70
8.1.220.0040.00417.79
8.1.210.0030.00518.77
8.1.200.0090.00017.25
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00718.77
8.1.160.0050.00318.84
8.1.150.0040.00418.80
8.1.140.0030.00618.80
8.1.130.0000.00817.51
8.1.120.0040.00417.46
8.1.110.0000.00817.36
8.1.100.0060.00317.41
8.1.90.0000.00717.30
8.1.80.0040.00417.40
8.1.70.0050.00217.41
8.1.60.0090.00017.55
8.1.50.0030.00617.50
8.1.40.0050.00317.41
8.1.30.0030.00617.68
8.1.20.0030.00617.54
8.1.10.0000.00817.54
8.1.00.0130.00117.45
8.0.300.0070.00020.21
8.0.290.0030.00616.75
8.0.280.0000.00718.38
8.0.270.0000.00718.00
8.0.260.0000.00716.80
8.0.250.0040.00417.03
8.0.240.0000.00817.01
8.0.230.0000.00716.89
8.0.220.0050.00216.86
8.0.210.0030.00316.93
8.0.200.0030.00316.98
8.0.190.0070.00016.99
8.0.180.0000.00716.96
8.0.170.0030.00617.03
8.0.160.0050.00316.98
8.0.150.0000.00716.89
8.0.140.0000.00716.90
8.0.130.0060.00715.07
8.0.120.0100.00316.88
8.0.110.0110.00216.92
8.0.100.0080.00616.94
8.0.90.0110.00416.91
8.0.80.0160.00116.95
8.0.70.0110.00216.90
8.0.60.0070.00716.98
8.0.50.0130.00116.86
8.0.30.0100.01016.82
8.0.20.0150.00717.01
8.0.10.0140.00617.06
8.0.00.0030.01117.09
7.4.330.0000.00515.55
7.4.320.0000.00616.59
7.4.300.0060.00016.36
7.4.290.0030.00516.48
7.4.280.0040.00416.58
7.4.270.0050.00316.59
7.4.260.0120.00114.89
7.4.250.0070.00716.47
7.4.240.0130.00116.51
7.4.230.0130.00116.36
7.4.220.0040.00616.50
7.4.210.0110.00616.58
7.4.200.0100.00416.36
7.4.190.0170.00416.66
7.4.180.0160.00316.60
7.4.160.0130.00716.48
7.4.150.0100.00716.44
7.4.140.0120.00716.39
7.4.130.0090.00916.48
7.4.120.0110.00616.41
7.4.110.0100.00916.40
7.4.100.0130.00616.53
7.4.90.0130.00416.34
7.4.80.0090.00816.36
7.4.70.0100.00816.42
7.4.60.0130.00316.38
7.4.50.0100.00916.34
7.4.40.0110.00816.45
7.4.30.0130.00516.44
7.4.20.0120.00616.40
7.4.10.0090.00916.34
7.4.00.0130.00316.41
7.3.330.0100.00416.30
7.3.320.0070.00514.67
7.3.310.0080.00516.23
7.3.300.0110.00216.08
7.3.290.0080.00816.27
7.3.280.0200.00016.29
7.3.270.0060.01016.08
7.3.260.0090.00816.21
7.3.250.0090.00916.16
7.3.240.0100.00916.20
7.3.230.0060.01016.19
7.3.220.0110.00616.16
7.3.210.0160.00116.20
7.3.200.0110.00816.16
7.3.190.0170.00316.12
7.3.180.0120.00716.17
7.3.170.0140.00516.15
7.3.160.0110.00916.14
7.3.150.0110.00716.16
7.3.140.0080.00916.14
7.3.130.0050.01416.12
7.3.120.0100.01016.16
7.3.110.0110.00616.10
7.3.100.0090.01016.18
7.3.90.0080.00916.45
7.3.80.0140.00616.19
7.3.70.0100.00716.18
7.3.60.0110.00516.37
7.3.50.0110.00816.22
7.3.40.0170.00116.25
7.3.30.0080.00816.30
7.3.20.0150.01117.24
7.3.10.0110.00617.14
7.3.00.0120.00817.09

preferences:
63.34 ms | 403 KiB | 5 Q