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('secret', '$2y$04$usesomesillystringfor' . $char); $substr = substr($hash, 28, 1); var_dump( $hash, $char, decbin(ord($char)), $substr, decbin(ord($substr)), '------------------------------' ); } $alphabet = str_split('abcdefghijklmnopqrstuvwxyz'); foreach($alphabet as $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.0160.08218.39
8.3.50.0160.07421.15
8.3.40.0100.06818.79
8.3.30.0070.06718.89
8.3.20.0060.03220.30
8.3.10.0040.03522.06
8.3.00.0070.06320.46
8.2.180.0160.05616.38
8.2.170.0200.05322.96
8.2.160.0110.06020.39
8.2.150.0070.03124.18
8.2.140.0000.03824.66
8.2.130.0100.04826.16
8.2.120.0130.04919.48
8.2.110.0070.03419.33
8.2.100.0070.03817.78
8.2.90.0030.03817.75
8.2.80.0030.03817.97
8.2.70.0060.03517.91
8.2.60.0030.03917.80
8.2.50.0070.03618.10
8.2.40.0060.03520.34
8.2.30.0030.03818.00
8.2.20.0000.04217.57
8.2.10.0030.03817.78
8.2.00.0070.04017.63
8.1.280.0100.06625.92
8.1.270.0030.03522.09
8.1.260.0100.02926.35
8.1.250.0060.03228.09
8.1.240.0070.03423.86
8.1.230.0100.03620.93
8.1.220.0030.03917.78
8.1.210.0100.03318.77
8.1.200.0030.04117.23
8.1.190.0070.03717.22
8.1.180.0000.04318.10
8.1.170.0100.03318.50
8.1.160.0060.03622.20
8.1.150.0060.03518.56
8.1.140.0060.03517.37
8.1.130.0070.03417.83
8.1.120.0030.03817.52
8.1.110.0100.03317.29
8.1.100.0030.03817.34
8.1.90.0030.04017.35
8.1.80.0060.03517.43
8.1.70.0070.03517.38
8.1.60.0000.04417.60
8.1.50.0030.04017.53
8.1.40.0070.03617.46
8.1.30.0030.03817.57
8.1.20.0030.03917.67
8.1.10.0000.04317.46
8.1.00.0000.04217.50
8.0.300.0070.03719.89
8.0.290.0100.03216.63
8.0.280.0030.03718.37
8.0.270.0060.03517.18
8.0.260.0070.03416.73
8.0.250.0000.04116.97
8.0.240.0070.03616.99
8.0.230.0030.03816.93
8.0.220.0030.03816.94
8.0.210.0000.04116.76
8.0.200.0060.03516.94
8.0.190.0030.03916.96
8.0.180.0030.03816.95
8.0.170.0070.03616.75
8.0.160.0060.03516.93
8.0.150.0030.03816.70
8.0.140.0000.04116.89
8.0.130.0030.03813.30
8.0.120.0090.03416.77
8.0.110.0040.03816.79
8.0.100.0030.03816.91
8.0.90.0060.03516.84
8.0.80.0130.05516.89
8.0.70.0060.03516.97
8.0.60.0000.04116.86
8.0.50.0070.03616.96
8.0.30.0160.05317.27
8.0.20.0150.05817.40
8.0.10.0030.03817.05
8.0.00.0110.06116.91
7.4.330.0030.03615.00
7.4.320.0030.04016.53
7.4.300.0000.04016.37
7.4.290.0070.03616.67
7.4.280.0090.03216.50
7.4.270.0030.03816.60
7.4.260.0000.04616.55
7.4.250.0130.02916.48
7.4.240.0020.03916.48
7.4.230.0000.04016.63
7.4.220.0110.07016.61
7.4.210.0120.06116.53
7.4.200.0090.03116.54
7.4.190.0030.03816.75
7.4.160.0150.05616.50
7.4.150.0200.04917.40
7.4.140.0140.05617.86
7.4.130.0110.05816.56
7.4.120.0130.06416.51
7.4.110.0100.06116.66
7.4.100.0190.05116.48
7.4.90.0190.05116.59
7.4.80.0140.05419.39
7.4.70.0130.05916.52
7.4.60.0170.05616.58
7.4.50.0030.04916.34
7.4.40.0030.04522.77
7.4.30.0130.05916.49
7.4.00.0030.05214.84
7.3.330.0000.04113.31
7.3.320.0000.03913.31
7.3.310.0060.03616.34
7.3.300.0060.03516.32
7.3.290.0100.06016.24
7.3.280.0110.06016.27
7.3.270.0070.06217.40
7.3.260.0130.05916.63
7.3.250.0180.05216.47
7.3.240.0100.06816.35
7.3.230.0060.06816.43
7.3.210.0000.07016.41
7.3.200.0030.07216.64
7.3.190.0160.05816.28
7.3.180.0130.05616.36
7.3.170.0120.05716.60
7.3.160.0180.05716.54
7.3.120.0140.04114.72
7.2.330.0100.06016.74
7.2.320.0030.06516.64
7.2.310.0090.06216.51
7.2.300.0160.05716.66
7.2.290.0070.06016.57
7.2.60.0170.03317.05
7.2.00.0030.05019.60
7.1.200.0060.04516.00
7.1.100.0000.05218.11
7.1.70.0000.04316.95
7.1.60.0030.08719.82
7.1.50.0100.08617.04
7.1.00.0030.12722.31
7.0.200.0030.04116.93
7.0.140.0070.12722.08
7.0.60.0070.12019.91
7.0.50.0070.13017.84
7.0.40.0100.08017.71
7.0.30.0100.07317.81
7.0.20.0030.08317.72
7.0.10.0130.12717.72
7.0.00.0100.08717.74
5.6.280.0070.12721.13
5.6.210.0100.12020.48
5.6.200.0030.13718.16
5.6.190.0030.13318.29
5.6.180.0100.12718.18
5.6.170.0030.12318.19
5.6.160.0070.13318.14
5.6.150.0100.07318.23
5.6.140.0130.12318.18
5.6.130.0100.12018.15
5.6.120.0130.07018.28
5.6.110.0000.10018.28
5.6.100.0170.11718.23
5.6.90.0100.12018.25
5.6.80.0000.08017.54
5.6.70.0070.07317.55
5.6.60.0070.07317.64
5.6.50.0030.07317.66
5.6.40.0030.10017.63
5.6.30.0000.07717.53
5.6.20.0000.07717.51
5.6.10.0030.07317.60
5.6.00.0030.07317.53
5.5.350.0230.11020.34
5.5.340.0070.12317.99
5.5.330.0070.07717.99
5.5.320.0130.07717.96
5.5.310.0000.08318.02
5.5.300.0000.14018.07
5.5.290.0100.11718.05
5.5.280.0030.10018.01
5.5.270.0000.08318.01
5.5.260.0130.13018.03
5.5.250.0030.09017.89
5.5.240.0130.06317.46
5.5.230.0070.07317.36
5.5.220.0030.07317.35
5.5.210.0070.07017.36
5.5.200.0000.07717.35
5.5.190.0170.07317.36
5.5.180.0030.07317.33
5.5.160.0030.07017.33
5.5.150.0030.07317.36
5.5.140.0170.07017.33
5.5.130.0070.07017.40
5.5.120.0070.07017.43
5.5.110.0000.09317.43
5.5.100.0000.07317.24
5.5.90.0000.07317.29
5.5.80.0000.07317.33
5.5.70.0100.12317.23
5.5.60.0030.07717.29
5.5.50.0100.11017.34
5.5.40.0030.12017.19
5.5.30.0170.07717.30
5.5.20.0100.13017.18
5.5.10.0070.08317.32
5.5.00.0100.11717.15
5.4.450.0030.13019.43
5.4.440.0070.11019.34
5.4.430.0070.09319.30
5.4.420.0030.08719.42
5.4.410.0130.12719.23
5.4.400.0000.13319.12
5.4.390.0030.07318.89
5.4.380.0000.07719.02
5.4.370.0100.06719.04
5.4.360.0030.07318.89
5.4.350.0000.07719.02
5.4.340.0000.07719.04
5.4.320.0100.06719.03
5.4.310.0000.07319.11
5.4.300.0000.08018.95
5.4.290.0000.07318.98
5.4.280.0070.07018.88
5.4.270.0030.07018.98
5.4.260.0000.07719.05
5.4.250.0000.07319.09
5.4.240.0070.06719.12
5.4.230.0030.07019.12
5.4.220.0030.12319.04
5.4.210.0030.13719.05
5.4.200.0070.07319.05
5.4.190.0070.13019.00
5.4.180.0070.08318.97
5.4.170.0070.11319.10
5.4.160.0070.08718.99
5.4.150.0200.11319.08
5.4.140.0100.12716.29
5.4.130.0130.12316.25
5.4.120.0100.10716.36
5.4.110.0070.13016.38
5.4.100.0100.07016.48
5.4.90.0030.12316.39
5.4.80.0070.12716.41
5.4.70.0070.12716.41
5.4.60.0100.12716.41
5.4.50.0070.08316.40
5.4.40.0100.08016.26
5.4.30.0070.11016.35
5.4.20.0100.12016.40
5.4.10.0030.11316.35
5.4.00.0130.11315.73
5.3.290.0130.07714.70
5.3.280.0030.07314.64
5.3.270.0200.07314.62
5.3.260.0030.11714.71
5.3.250.0070.12314.62
5.3.240.0100.12014.57
5.3.230.0100.13014.64
5.3.220.0070.11714.57
5.3.210.0100.12714.60
5.3.200.0070.08714.61
5.3.190.0100.13014.61
5.3.180.0170.11714.58
5.3.170.0130.07714.56
5.3.160.0070.12714.61
5.3.150.0070.12714.64
5.3.140.0170.11714.57
5.3.130.0030.12714.59
5.3.120.0000.11014.54
5.3.110.0030.11314.59
5.3.100.0100.07014.03
5.3.90.0130.11714.23
5.3.80.0070.07713.86
5.3.70.0100.10714.00
5.3.60.0070.07014.07
5.3.50.0170.07013.90
5.3.40.0030.07014.08
5.3.30.0030.08714.04
5.3.20.0030.06713.86
5.3.10.0100.07013.62
5.3.00.0100.06713.73
5.2.170.0070.05711.13
5.2.160.0000.04311.04
5.2.150.0030.03710.93
5.2.140.0070.05711.13
5.2.130.0070.06011.09
5.2.120.0070.05711.04
5.2.110.0030.03011.10
5.2.100.0130.05011.18
5.2.90.0170.05011.07
5.2.80.0070.05711.08
5.2.70.0000.07011.07
5.2.60.0030.04011.06
5.2.50.0100.05311.00
5.2.40.0030.06311.07
5.2.30.0030.06310.89
5.2.20.0030.04310.99
5.2.10.0030.03310.90
5.2.00.0070.03010.79
5.1.60.0030.04010.05
5.1.50.0070.04710.02
5.1.40.0070.0509.96
5.1.30.0000.03010.34
5.1.20.0000.03310.39
5.1.10.0000.03010.21
5.1.00.0000.03710.11
5.0.50.0030.0208.66
5.0.40.0000.0438.66
5.0.30.0000.0638.66
5.0.20.0030.0478.66
5.0.10.0100.0278.66
5.0.00.0030.0538.66
4.4.90.0070.0308.66
4.4.80.0030.0308.66
4.4.70.0030.0338.66
4.4.60.0000.0338.66
4.4.50.0030.0208.66
4.4.40.0000.0478.66
4.4.30.0070.0338.66
4.4.20.0070.0308.66
4.4.10.0000.0178.66
4.4.00.0030.0238.66
4.3.110.0000.0408.66
4.3.100.0030.0308.66
4.3.90.0000.0408.66
4.3.80.0070.0308.66
4.3.70.0030.0178.66
4.3.60.0000.0408.66
4.3.50.0000.0408.66
4.3.40.0070.0338.66
4.3.30.0030.0178.66
4.3.20.0100.0208.66
4.3.10.0070.0338.66
4.3.00.0000.0238.66

preferences:
42.74 ms | 401 KiB | 5 Q