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)
8.3.60.0171.28418.31
8.3.50.0151.29021.14
8.3.40.0131.27318.84
8.3.30.0201.26119.12
8.3.20.0100.67920.39
8.3.10.0070.68721.96
8.3.00.0030.71920.79
8.2.180.0171.27416.50
8.2.170.0101.29522.96
8.2.160.0131.29019.08
8.2.150.0070.68624.18
8.2.140.0100.68324.66
8.2.130.0070.68226.16
8.2.120.0100.67921.18
8.2.110.0100.69122.27
8.2.100.0070.77519.63
8.2.90.0030.77119.07
8.2.80.0030.77017.97
8.2.70.0100.76417.71
8.2.60.0030.77217.93
8.2.50.0070.77818.07
8.2.40.0100.82318.19
8.2.30.0030.77518.19
8.2.20.0070.77117.95
8.2.10.0030.78017.98
8.2.00.0070.77217.75
8.1.280.0131.26425.92
8.1.270.0100.68023.99
8.1.260.0100.68726.35
8.1.250.0030.68628.09
8.1.240.0070.68923.75
8.1.230.0070.79218.89
8.1.220.0030.77417.74
8.1.210.0000.77618.77
8.1.200.0030.77817.36
8.1.190.0030.76917.50
8.1.180.0000.77818.47
8.1.170.0030.82818.39
8.1.160.0070.77222.19
8.1.150.0070.76618.76
8.1.140.0030.77317.43
8.1.130.0100.76317.80
8.1.120.0030.77317.50
8.1.110.0100.83117.44
8.1.100.0030.77417.50
8.1.90.0030.76817.40
8.1.80.0100.77017.57
8.1.70.0030.77717.50
8.1.60.0070.77717.64
8.1.50.0170.75717.47
8.1.40.0000.78217.44
8.1.30.0070.77117.55
8.1.20.0070.76817.61
8.1.10.0070.77017.57
8.1.00.0070.76617.40
8.0.300.0001.25818.77
8.0.290.0131.25417.05
8.0.280.0031.26118.39
8.0.270.0071.25417.20
8.0.260.0071.26116.78
8.0.250.0001.26716.94
8.0.240.0101.25516.78
8.0.230.0031.26116.77
8.0.220.0031.25716.84
8.0.210.0031.26216.80
8.0.200.0001.26816.84
8.0.190.0031.26216.86
8.0.180.0031.25916.79
8.0.170.0071.25516.88
8.0.160.0071.26016.93
8.0.150.0101.25616.82
8.0.140.0031.26216.87
8.0.130.0101.26113.42
8.0.120.0101.28616.91
8.0.110.0101.25816.89
8.0.100.0071.26016.89
8.0.90.0131.25216.85
8.0.80.0131.91016.86
8.0.70.0101.25216.69
8.0.60.0001.26116.86
8.0.50.0031.25816.70
8.0.30.0411.78417.07
8.0.20.0281.77617.40
8.0.10.0271.26917.06
8.0.00.0411.82116.67
7.4.330.0031.27815.00
7.4.320.0031.27116.36
7.4.300.0071.26616.48
7.4.290.0031.26516.38
7.4.280.0101.26116.38
7.4.270.0001.28116.50
7.4.260.0131.27416.50
7.4.250.0071.26416.30
7.4.240.0051.27016.40
7.4.230.0071.26416.48
7.4.220.0131.98716.34
7.4.210.0181.93316.38
7.4.200.0031.26516.50
7.4.190.0001.27316.62
7.4.160.0301.89616.56
7.4.150.0261.79117.40
7.4.140.0311.83517.86
7.4.130.0411.84116.46
7.4.120.0461.86016.55
7.4.110.0201.79816.58
7.4.100.0301.89316.44
7.4.90.0131.82616.47
7.4.80.0491.81919.39
7.4.70.0361.79516.36
7.4.60.0461.78116.43
7.4.50.0000.97216.35
7.4.40.0031.33322.77
7.4.30.0261.81516.60
7.3.330.0071.94613.23
7.3.320.0031.93313.18
7.3.310.0001.26716.34
7.3.300.0031.27216.20
7.3.290.0201.88316.31
7.3.280.0231.92616.21
7.3.270.0161.81917.40
7.3.260.0271.78716.27
7.3.250.0341.81516.32
7.3.240.0261.82616.45
7.3.230.0391.86016.41
7.3.210.0261.80216.43
7.3.200.0421.83919.39
7.3.190.0161.90616.26
7.3.180.0131.81816.58
7.3.170.0261.87016.40
7.3.160.0141.89116.21
7.2.330.0301.80316.44
7.2.320.0351.82916.41
7.2.310.0201.80416.50
7.2.300.0331.83616.73
7.2.290.0191.79316.71
7.2.100.0991.43214.49
7.1.220.1231.27813.82
5.6.380.0311.49214.39

preferences:
32.25 ms | 400 KiB | 5 Q