3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dumb_hash(string $arbitrary, bool $raw_binary = false): string { $h = sodium_crypto_shorthash($arbitrary, 'SoatokDreamseekr'); if ($raw_binary) { return $h; } return sodium_bin2hex($h); } var_dump( dumb_hash('Stormi the Folf'), dumb_hash('Diffuse Moose') );

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.130.0080.00016.71
8.3.120.0080.00019.00
8.3.110.0040.00420.94
8.3.100.0080.00824.06
8.3.90.0000.00826.77
8.3.80.0000.00916.38
8.3.70.0130.00616.58
8.3.60.0140.00018.30
8.3.50.0110.01023.61
8.3.40.0090.01218.52
8.3.30.0070.00718.75
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.250.0120.00816.61
8.2.240.0090.00018.90
8.2.230.0050.00322.58
8.2.220.0150.00037.54
8.2.210.0160.00326.77
8.2.200.0030.00616.75
8.2.190.0100.01016.75
8.2.180.0000.01925.92
8.2.170.0030.01022.96
8.2.160.0060.00922.96
8.2.150.0040.00725.66
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0000.00719.83
8.2.110.0060.00322.17
8.2.100.0070.00417.72
8.2.90.0040.00417.75
8.2.80.0050.00318.67
8.2.70.0000.00817.92
8.2.60.0000.00817.63
8.2.50.0030.00617.55
8.2.40.0000.00719.39
8.2.30.0040.00417.92
8.2.20.0070.00017.95
8.2.10.0040.00419.21
8.2.00.0050.00219.21
8.1.300.0130.00318.74
8.1.290.0070.00318.88
8.1.280.0070.00725.92
8.1.270.0040.00424.66
8.1.260.0100.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00622.05
8.1.230.0040.00720.97
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0000.00917.23
8.1.180.0030.00518.10
8.1.170.0050.00318.91
8.1.160.0000.00718.83
8.1.150.0080.00018.88
8.1.140.0000.00718.88
8.1.130.0030.00317.29
8.1.120.0000.00717.31
8.1.110.0020.00617.39
8.1.100.0080.00417.33
8.1.90.0080.00417.36
8.1.80.0090.00317.30
8.1.70.0090.00417.34
8.1.60.0130.00217.49
8.1.50.0100.00417.48
8.1.40.0110.00417.53
8.1.30.0120.00317.62
8.1.20.0050.01017.65
8.1.10.0130.00217.51
8.1.00.0090.00717.37
8.0.300.0040.00419.90
8.0.290.0040.00416.63
8.0.280.0080.00018.40
8.0.270.0040.00418.01
8.0.260.0000.00616.76
8.0.250.0000.00616.87
8.0.240.0050.00516.80
8.0.230.0050.00516.86
8.0.220.0080.00416.74
8.0.210.0110.00216.81
8.0.200.0070.00616.79
8.0.190.0080.00516.79
8.0.180.0100.00316.83
8.0.170.0080.00516.81
8.0.160.0080.00516.85
8.0.150.0100.00316.74
8.0.140.0050.00816.73
8.0.130.0070.00615.86
8.0.120.0100.00316.80
8.0.110.0090.00516.76
8.0.100.0130.00116.79
8.0.90.0070.00516.74
8.0.80.0100.00716.77
8.0.70.0070.00816.72
8.0.60.0100.00416.77
8.0.50.0110.00316.77
8.0.30.0100.00716.78
8.0.20.0120.00616.95
8.0.10.0110.00617.01
8.0.00.0100.00616.92
7.4.330.0000.00515.55
7.4.320.0050.00416.48
7.4.300.0060.00416.53
7.4.290.0080.00416.53
7.4.280.0080.00416.53
7.4.270.0090.00516.54
7.4.260.0110.00515.68
7.4.250.0100.00516.53
7.4.240.0110.00316.53
7.4.230.0100.00416.56
7.4.220.0090.00416.46
7.4.210.0100.00616.60
7.4.200.0060.00716.54
7.4.190.0130.00216.58
7.4.180.0110.00616.54
7.4.160.0120.00516.54
7.4.150.0070.00916.44
7.4.140.0110.00616.44
7.4.130.0070.01016.40
7.4.120.0120.00616.45
7.4.110.0110.00616.39
7.4.100.0120.00516.43
7.4.90.0120.00516.43
7.4.80.0100.00717.44
7.4.70.0110.00616.81
7.4.60.0090.00816.86
7.4.50.0080.01116.74
7.4.40.0080.00816.77
7.4.30.0090.00916.74
7.4.20.0080.00916.73
7.4.10.0100.00716.73
7.4.00.0100.00716.75
7.3.330.0040.00716.24
7.3.320.0090.00415.44
7.3.310.0090.00516.21
7.3.300.0110.00316.30
7.3.290.0090.00616.25
7.3.280.0140.00216.25
7.3.270.0110.00516.30
7.3.260.0130.00416.27
7.3.250.0140.00216.21
7.3.240.0070.00916.30
7.3.230.0100.00516.24
7.3.220.0110.00516.26
7.3.210.0090.00716.23
7.3.200.0110.00516.91
7.3.190.0130.00516.78
7.3.180.0090.00916.80
7.3.170.0100.00716.68
7.3.160.0120.00616.66
7.3.150.0070.01016.62
7.3.140.0090.00916.71
7.3.130.0100.00816.61
7.3.120.0110.00616.70
7.3.110.0110.00516.69
7.3.100.0110.00616.64
7.3.90.0080.00916.77
7.3.80.0070.00916.66
7.3.70.0100.00816.66
7.3.60.0090.00716.68
7.3.50.0130.00516.68
7.3.40.0100.00816.66
7.3.30.0090.00716.72
7.3.20.0170.00817.18
7.3.10.0090.01017.17
7.3.00.0090.00917.05
7.2.340.0110.00916.40
7.2.330.0120.00916.31
7.2.320.0150.00516.91
7.2.310.0110.00916.85
7.2.300.0110.00916.81
7.2.290.0140.00716.76
7.2.280.0110.00916.74
7.2.270.0130.00516.73
7.2.260.0110.00916.70
7.2.250.0110.00816.78
7.2.240.0130.00616.77
7.2.230.0110.00916.80
7.2.220.0120.00716.76
7.2.210.0110.00916.74
7.2.200.0140.00816.81
7.2.190.0130.00716.81
7.2.180.0130.00716.75
7.2.170.0120.00716.81
7.2.160.0120.00716.84
7.2.150.0140.00717.29
7.2.140.0140.00717.34
7.2.130.0160.00717.35
7.2.120.0130.00617.24
7.2.110.0110.00817.33
7.2.100.0140.00717.34
7.2.90.0150.00617.31
7.2.80.0130.00817.27
7.2.70.0140.00717.33
7.2.60.0130.00717.33
7.2.50.0180.00617.28
7.2.40.0140.00617.32
7.2.30.0100.01017.27
7.2.20.0130.00817.30
7.2.10.0110.00817.27
7.2.00.0100.01017.31

preferences:
28.72 ms | 403 KiB | 5 Q