3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pass = 'secret'; $salt = '$2y$07$usesomesillystringforsalt$'; $hash = crypt($pass, $salt); var_dump( $hash, str_split($hash) // the 22th salt character 'e' is on index 28 ); function meow($char) { $hash = crypt($password, '$2y$07$usesomesillystringfor' . $char); $char = substr($hash, 28, 1); $dec = ord($char); $bin = decbin($dec); var_dump( $hash, $char, $dec, $bin ); } for ($char = 'a'; $char <= 'z'; $char++) { meow($char) }

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)
5.4.260.0040.03912.39
5.4.250.0080.03612.39
5.4.240.0050.03712.39
5.4.230.0050.03912.39
5.4.220.0040.03712.38
5.4.210.0110.03012.38
5.4.200.0080.03412.39
5.4.190.0050.03712.38
5.4.180.0090.03212.38
5.4.170.0080.03312.39
5.4.160.0050.03612.39
5.4.150.0080.03312.38
5.4.140.0030.03912.07
5.4.130.0060.04012.05
5.4.120.0090.03112.02
5.4.110.0080.03312.02
5.4.100.0020.04112.02
5.4.90.0040.04312.02
5.4.80.0050.03712.01
5.4.70.0030.03712.01
5.4.60.0070.03312.01
5.4.50.0080.03412.01
5.4.40.0100.03112.00
5.4.30.0050.03611.99
5.4.20.0090.03211.98
5.4.10.0040.03711.99
5.4.00.0070.03511.49
5.3.280.0080.03612.71
5.3.270.0060.04012.73
5.3.260.0080.04512.72
5.3.250.0050.04112.72
5.3.240.0050.04112.72
5.3.230.0080.03912.71
5.3.220.0070.04412.68
5.3.210.0070.03712.68
5.3.200.0080.03412.68
5.3.190.0070.04912.68
5.3.180.0040.03912.67
5.3.170.0060.03612.67
5.3.160.0080.03712.67
5.3.150.0080.03712.67
5.3.140.0050.04412.66
5.3.130.0110.03312.66
5.3.120.0080.04212.65
5.3.110.0070.04112.66
5.3.100.0050.04712.12
5.3.90.0100.03712.09
5.3.80.0080.03812.08
5.3.70.0090.03312.08
5.3.60.0060.03512.06
5.3.50.0070.04212.01
5.3.40.0070.03912.01
5.3.30.0050.04011.98
5.3.20.0060.03811.76
5.3.10.0060.03511.72
5.3.00.0050.03711.70

preferences:
155.22 ms | 1394 KiB | 7 Q