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)), 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.0170.07318.18
8.3.50.0130.06821.27
8.3.40.0100.07518.59
8.3.30.0100.07018.92
8.3.20.0030.03520.34
8.3.10.0000.03922.05
8.3.00.0130.03520.65
8.2.180.0030.06916.38
8.2.170.0100.07622.96
8.2.160.0130.05919.25
8.2.150.0030.03624.18
8.2.140.0030.03524.66
8.2.130.0030.03526.16
8.2.120.0130.02619.36
8.2.110.0130.02619.31
8.2.100.0070.04419.51
8.2.90.0030.03819.17
8.2.80.0030.03917.97
8.2.70.0130.02917.63
8.2.60.0030.04117.91
8.2.50.0070.03618.07
8.2.40.0030.04218.22
8.2.30.0030.03917.98
8.2.20.0030.03817.66
8.2.10.0030.03817.66
8.2.00.0070.03517.66
8.1.280.0130.06425.92
8.1.270.0070.03322.20
8.1.260.0060.03226.35
8.1.250.0030.03528.09
8.1.240.0130.03221.96
8.1.230.0030.04320.77
8.1.220.0070.03717.79
8.1.210.0070.03718.77
8.1.200.0030.04217.35
8.1.190.0030.03817.40
8.1.180.0030.03920.40
8.1.170.0070.03918.64
8.1.160.0030.03922.05
8.1.150.0030.03818.61
8.1.140.0030.03817.45
8.1.130.0090.03117.76
8.1.120.0000.04117.44
8.1.110.0070.03517.44
8.1.100.0030.03817.46
8.1.90.0060.03617.31
8.1.80.0070.03517.49
8.1.70.0000.04217.41
8.1.60.0070.03717.55
8.1.50.0060.03717.41
8.1.40.0030.03917.39
8.1.30.0000.04217.56
8.1.20.0000.04217.69
8.1.10.0000.04317.39
8.1.00.0040.03917.51
8.0.300.0070.03618.77
8.0.290.0000.04117.05
8.0.280.0030.04018.43
8.0.270.0030.03817.25
8.0.260.0090.03116.88
8.0.250.0030.03716.92
8.0.240.0070.03516.94
8.0.230.0000.04116.85
8.0.220.0000.04216.88
8.0.210.0060.03616.79
8.0.200.0060.03516.98
8.0.190.0030.03916.91
8.0.180.0030.03816.78
8.0.170.0030.04016.89
8.0.160.0030.03916.95
8.0.150.0030.03816.87
8.0.140.0030.03816.82
8.0.130.0000.04013.32
8.0.120.0000.04216.84
8.0.110.0060.03516.89
8.0.100.0000.04316.77
8.0.90.0130.02816.83
8.0.80.0060.06916.92
8.0.70.0000.04216.80
8.0.60.0070.03516.80
8.0.50.0060.03516.90
8.0.30.0120.05916.89
8.0.20.0170.05317.40
8.0.10.0000.04217.07
8.0.00.0180.05816.75
7.4.330.0000.03915.00
7.4.320.0030.03916.56
7.4.300.0070.03316.56
7.4.290.0000.04116.52
7.4.280.0000.04116.47
7.4.270.0060.03516.50
7.4.260.0030.04116.43
7.4.250.0060.03516.57
7.4.240.0060.03516.62
7.4.230.0000.04116.55
7.4.220.0130.06416.64
7.4.210.0080.06316.53
7.4.200.0060.03516.68
7.4.190.0000.04116.55
7.4.160.0130.05716.53
7.4.150.0060.06517.40
7.4.140.0110.06017.86
7.4.130.0160.05816.44
7.4.120.0160.05616.57
7.4.110.0120.06016.52
7.4.100.0100.06116.57
7.4.90.0120.06316.73
7.4.80.0070.06219.39
7.4.70.0130.05816.50
7.4.60.0130.05416.50
7.4.50.0070.04716.57
7.4.40.0030.04822.77
7.4.30.0000.07416.41
7.4.00.0030.04815.14
7.3.330.0000.03913.37
7.3.320.0000.04013.25
7.3.310.0030.03716.26
7.3.300.0000.04116.31
7.3.290.0030.07116.31
7.3.280.0150.05616.30
7.3.270.0150.05517.40
7.3.260.0130.05516.52
7.3.250.0150.06116.42
7.3.240.0130.05716.46
7.3.230.0200.05616.64
7.3.210.0030.06616.54
7.3.200.0130.05716.28
7.3.190.0090.07116.31
7.3.180.0060.06416.61
7.3.170.0210.04816.69
7.3.160.0130.05716.34
7.3.120.0070.04514.51
7.3.10.0160.04816.07
7.3.00.0230.04716.08
7.2.330.0120.06016.75
7.2.320.0110.05716.50
7.2.310.0100.05616.73
7.2.300.0130.05516.70
7.2.290.0240.04616.82
7.2.130.0180.04216.20
7.2.120.0030.06016.56
7.2.110.0230.04616.41
7.2.100.0220.04216.40
7.2.90.0150.05616.52
7.2.80.0400.05716.68
7.2.70.0200.04716.57
7.2.60.0170.05216.92
7.2.50.0170.05116.52
7.2.40.0170.06316.85
7.2.30.0190.04716.39
7.2.20.0230.04616.61
7.2.10.0200.07316.33
7.2.00.0090.05518.14
7.1.250.0130.04615.09
7.1.100.0070.04518.16
7.1.70.0000.04517.24
7.1.60.0070.08819.82
7.1.50.0160.07816.80
7.1.00.0030.06722.46
7.0.200.0000.05016.82
7.0.140.0130.12022.18
7.0.60.0070.09019.95
7.0.50.0130.07017.74
7.0.40.0170.11320.25
7.0.30.0230.09020.12
7.0.20.0300.07320.25
7.0.10.0100.08320.06
7.0.00.0100.08720.16
5.6.280.0030.13020.78
5.6.210.0100.07020.61
5.6.200.0100.13318.16
5.6.190.0070.11020.47
5.6.180.0370.09320.55
5.6.170.0300.07320.71
5.6.160.0130.07320.52
5.6.150.0000.14018.28
5.6.140.0070.08718.15
5.6.130.0100.08018.21
5.6.120.0000.09021.05
5.6.110.0030.08020.99
5.6.100.0070.07721.14
5.6.90.0030.13721.11
5.6.80.0130.13020.54
5.5.350.0300.09720.40
5.5.340.0030.09317.95
5.5.330.0130.12320.57
5.5.320.0270.07720.27
5.5.310.0200.13320.30
5.5.300.0070.12717.98
5.5.290.0030.09718.08
5.5.280.0070.09320.89
5.5.270.0070.12720.88
5.5.260.0100.12720.84
5.5.250.0100.12020.58
5.5.240.0030.13720.19
5.4.450.0800.10719.45
5.4.440.0800.11019.64
5.4.430.0030.11019.53
5.4.420.0130.10319.41
5.4.410.0200.11719.02
5.4.400.0070.10318.79
5.4.390.0030.11718.62
5.4.380.0100.10718.48
5.4.370.0130.10018.80
5.4.360.0130.10018.57
5.4.350.0070.11318.79
5.4.340.0170.09718.89
5.4.320.0060.07712.51
5.4.310.0060.08312.50
5.4.300.0130.07612.51
5.4.290.0070.08212.50
5.4.280.0060.07512.40
5.4.270.0090.07112.40
5.4.260.0330.10318.80
5.4.250.0130.13718.98
5.4.240.0130.12718.95
5.4.230.0230.11718.98
5.4.220.0200.12718.83
5.4.210.0100.11018.77
5.4.200.0130.11019.09
5.4.190.0170.13318.83
5.4.180.0200.10019.00
5.4.170.0270.11018.88
5.4.160.0170.10318.94
5.4.150.0130.11719.08
5.4.140.0270.11716.44
5.4.130.0170.10716.30
5.4.120.0030.11716.34
5.4.110.0170.10716.52
5.4.100.0230.11316.65
5.4.90.0100.11716.49
5.4.80.0200.10716.47
5.4.70.0230.11716.39
5.4.60.0030.10716.63
5.4.50.0230.11716.55
5.4.40.0230.10016.38
5.4.30.0130.10716.43
5.4.20.0130.10016.43
5.4.10.0200.11316.52
5.4.00.0200.11715.70
5.3.290.0030.08212.80
5.3.280.0100.10714.82
5.3.270.0100.11014.63
5.3.260.0070.12314.83
5.3.250.0200.10314.70
5.3.240.0200.11014.62
5.3.230.0270.10714.69
5.3.220.0270.09314.55
5.3.210.0200.09714.40
5.3.200.0230.09714.59
5.3.190.0170.12314.57
5.3.180.0130.10314.56
5.3.170.0170.10014.63
5.3.160.0100.11014.40
5.3.150.0070.11014.59
5.3.140.0170.11714.66
5.3.130.0200.12014.64
5.3.120.0200.12714.73
5.3.110.0200.14014.73
5.3.100.0030.12714.02
5.3.90.0100.10014.00
5.3.80.0130.10314.23
5.3.70.0030.13313.92
5.3.60.0130.05714.02
5.3.50.0230.05314.10
5.3.40.0130.07313.92
5.3.30.0100.06013.98
5.3.20.0170.06013.92
5.3.10.0130.06013.73
5.3.00.0130.07013.79
5.2.170.0100.04011.15
5.2.160.0030.04711.16
5.2.150.0170.04711.21
5.2.140.0100.05710.90
5.2.130.0030.04711.18
5.2.120.0130.05311.12
5.2.110.0130.04711.11
5.2.100.0070.04311.00
5.2.90.0070.06010.98
5.2.80.0130.06011.00
5.2.70.0030.04711.12
5.2.60.0070.04710.96
5.2.50.0130.05310.93
5.2.40.0130.05011.04
5.2.30.0230.04711.05
5.2.20.0100.05311.02
5.2.10.0030.05310.84
5.2.00.0130.04710.80
5.1.60.0030.05010.13
5.1.50.0100.0309.96
5.1.40.0030.0439.77
5.1.30.0170.03710.14
5.1.20.0030.05710.41
5.1.10.0100.04010.24
5.1.00.0030.04010.14
5.0.50.0130.0338.62
5.0.40.0100.0238.54
5.0.30.0030.0508.21
5.0.20.0070.0338.27
5.0.10.0100.0338.14
5.0.00.0100.0508.29
4.4.90.0000.0307.25
4.4.80.0230.0177.25
4.4.70.0070.0237.25
4.4.60.0100.0277.25
4.4.50.0030.0307.25
4.4.40.0070.0307.25
4.4.30.0070.0237.25
4.4.20.0030.0277.25
4.4.10.0070.0307.25
4.4.00.0070.0407.25
4.3.110.0000.0277.25
4.3.100.0030.0237.25
4.3.90.0100.0277.25
4.3.80.0030.0437.25
4.3.70.0070.0277.25
4.3.60.0030.0307.25
4.3.50.0000.0277.25
4.3.40.0030.0337.25
4.3.30.0070.0177.25
4.3.20.0000.0237.25
4.3.10.0070.0207.25
4.3.00.0170.0206.76

preferences:
40.53 ms | 401 KiB | 5 Q