3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(explode('$', sodium_crypto_pwhash_str('string',SODIUM_CRYPTO_PWHASH_OPSLIMIT_INTERACTIVE, SODIUM_CRYPTO_PWHASH_MEMLIMIT_INTERACTIVE)));

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.1.110.0040.00417.33
8.1.100.0040.00417.35
8.1.90.0070.00017.38
8.1.80.0000.00717.21
8.1.70.0050.00617.19
8.1.60.0050.00417.42
8.1.50.0050.00517.31
8.1.40.0070.00217.38
8.1.30.0040.00417.55
8.1.20.0060.00417.55
8.1.10.0170.07749.31
8.1.00.0200.07949.17
8.0.240.0030.08948.68
8.0.230.0100.07948.73
8.0.220.0070.08748.60
8.0.210.0130.08648.69
8.0.200.0230.07348.74
8.0.190.0180.07648.64
8.0.180.0230.07348.66
8.0.170.0200.07948.61
8.0.160.0290.06548.60
8.0.150.0080.08348.50
8.0.140.0230.07048.63
8.0.130.0150.07446.82
8.0.120.0180.08248.54
8.0.110.0130.08748.61
8.0.100.0180.07448.51
8.0.90.0190.07948.54
8.0.80.0280.11948.62
8.0.70.0140.08248.54
8.0.60.0210.07248.60
8.0.50.0120.08548.53
8.0.30.0450.10948.61
8.0.20.0370.14148.68
8.0.10.0170.07948.70
8.0.00.0150.04532.58
7.4.300.0200.07048.28
7.4.290.0140.08348.28
7.4.280.0250.07948.33
7.4.270.0120.08848.38
7.4.260.0210.07446.73
7.4.250.0190.07848.25
7.4.240.0170.07948.36
7.4.230.0220.08348.25
7.4.220.0140.08248.38
7.4.210.0320.14248.31
7.4.200.0210.07548.32
7.4.190.0160.08048.30
7.4.180.0280.06948.30
7.4.160.0290.08248.22
7.4.150.0330.08148.21
7.4.140.0180.09048.29
7.4.130.0300.12848.33
7.4.120.0330.13948.30
7.4.110.0420.14048.17
7.4.100.0350.13548.34
7.4.90.0290.12348.28
7.4.80.0400.12048.29
7.4.70.0330.11148.29
7.4.60.0290.12848.10
7.4.50.0270.11448.15
7.4.40.0330.10848.15
7.4.30.0280.11948.25
7.4.20.0250.10748.14
7.4.10.0410.11148.21
7.4.00.0180.11948.34
7.3.330.0140.08347.80
7.3.320.0200.08046.41
7.3.310.0120.08148.08
7.3.300.0190.07647.96
7.3.290.0330.12348.00
7.3.280.0110.08647.98
7.3.270.0240.07248.19
7.3.260.0280.11148.05
7.3.250.0110.08747.98
7.3.240.0380.12348.06
7.3.230.0270.11748.01
7.3.220.0130.08648.03
7.3.210.0340.10847.98
7.3.200.0280.13247.97
7.3.190.0320.12348.15
7.3.180.0290.11347.99
7.3.170.0220.11547.93
7.3.160.0210.11848.12
7.3.150.0330.10247.91
7.3.140.0280.11648.09
7.3.130.0280.10948.07
7.3.120.0220.11548.06
7.3.110.0330.13547.95
7.3.100.0250.11348.06
7.3.90.0270.12548.04
7.3.80.0290.10948.02
7.3.70.0320.12947.92
7.3.60.0260.11048.13
7.3.50.0360.10548.14
7.3.40.0260.11048.01
7.3.30.0250.11447.98
7.3.20.0370.11148.90
7.3.10.0330.10848.98
7.3.00.0380.10449.02
7.2.340.0160.08447.91
7.2.330.0300.11248.38
7.2.320.0310.12848.25
7.2.310.0350.10547.95
7.2.300.0170.12048.14
7.2.290.0280.13048.02
7.2.280.0190.11748.18
7.2.270.0280.10948.17
7.2.260.0380.10548.10
7.2.250.0280.10947.96
7.2.240.0240.11147.98
7.2.230.0330.12648.08
7.2.220.0280.10847.88
7.2.210.0300.11548.17
7.2.200.0330.10448.12
7.2.190.0200.11748.04
7.2.180.0390.10248.17
7.2.170.0310.10848.26
7.2.160.0230.11148.10
7.2.150.0240.11049.13
7.2.140.0350.10349.21
7.2.130.0220.11449.21
7.2.120.0350.10249.06
7.2.110.0250.11549.17
7.2.100.0370.12249.24
7.2.90.0270.11549.18
7.2.80.0390.10349.13
7.2.70.0280.11048.91
7.2.60.0250.11749.13
7.2.50.0230.13049.07
7.2.40.0480.11449.05
7.2.30.0220.12249.25
7.2.20.0280.10949.06
7.2.10.0350.12048.96
7.2.00.0310.11349.29

preferences:
70.11 ms | 412 KiB | 13 Q