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.0100.06318.55
8.3.50.0120.06321.14
8.3.40.0030.06818.59
8.3.30.0100.06018.97
8.3.20.0000.03920.21
8.3.10.0000.03822.04
8.3.00.0030.03420.49
8.2.180.0070.06516.50
8.2.170.0130.08122.96
8.2.160.0030.06819.04
8.2.150.0100.04324.18
8.2.140.0070.03324.66
8.2.130.0000.03826.16
8.2.120.0070.06119.09
8.2.110.0030.03622.13
8.2.100.0000.04719.45
8.2.90.0000.04219.23
8.2.80.0030.03817.97
8.2.70.0100.03317.50
8.2.60.0040.03917.93
8.2.50.0030.03918.07
8.2.40.0060.04118.21
8.2.30.0130.02918.05
8.2.20.0030.03817.58
8.2.10.0030.03817.74
8.2.00.0040.03917.71
8.1.280.0100.07325.92
8.1.270.0070.03222.14
8.1.260.0030.03526.35
8.1.250.0030.03528.09
8.1.240.0000.04023.85
8.1.230.0100.03619.17
8.1.220.0070.03617.79
8.1.210.0030.03818.77
8.1.200.0100.03417.22
8.1.190.0030.03817.53
8.1.180.0030.03918.57
8.1.170.0030.04418.50
8.1.160.0100.03222.00
8.1.150.0000.04218.59
8.1.140.0040.03917.37
8.1.130.0000.04117.79
8.1.120.0000.04117.45
8.1.110.0030.04317.43
8.1.100.0030.03817.41
8.1.90.0030.03817.39
8.1.80.0000.04117.45
8.1.70.0030.03917.42
8.1.60.0100.03917.59
8.1.50.0070.03517.54
8.1.40.0000.04217.50
8.1.30.0000.04417.62
8.1.20.0060.03517.67
8.1.10.0030.03917.38
8.1.00.0030.03817.41
8.0.300.0030.03818.77
8.0.290.0000.04117.05
8.0.280.0030.03718.38
8.0.270.0030.03817.18
8.0.260.0070.03416.81
8.0.250.0070.03516.91
8.0.240.0070.03616.85
8.0.230.0000.04116.92
8.0.220.0030.03816.89
8.0.210.0000.04116.85
8.0.200.0000.04316.93
8.0.190.0000.04216.99
8.0.180.0000.04116.84
8.0.170.0030.03916.79
8.0.160.0030.04016.79
8.0.150.0000.04216.82
8.0.140.0000.04116.84
8.0.130.0030.03713.35
8.0.120.0030.04116.88
8.0.110.0030.03816.82
8.0.100.0030.03817.00
8.0.90.0030.03916.95
8.0.80.0100.06116.93
8.0.70.0030.03816.95
8.0.60.0060.03516.81
8.0.50.0070.03716.77
8.0.30.0110.06117.28
8.0.20.0110.05817.40
8.0.10.0100.03317.05
8.0.00.0130.06116.78
7.4.330.0030.03615.00
7.4.320.0030.03716.44
7.4.300.0000.04116.51
7.4.290.0030.03716.59
7.4.280.0030.03916.50
7.4.270.0030.03816.52
7.4.260.0000.04116.62
7.4.250.0030.04016.47
7.4.240.0050.03616.60
7.4.230.0070.03416.66
7.4.220.0160.05916.46
7.4.210.0090.05816.61
7.4.200.0000.04216.58
7.4.190.0030.03816.63
7.4.160.0160.06516.57
7.4.150.0070.06117.40
7.4.140.0130.06117.86
7.4.130.0100.06316.48
7.4.120.0140.05516.56
7.4.110.0090.05916.36
7.4.100.0130.05716.57
7.4.90.0090.06416.63
7.4.80.0070.06319.39
7.4.70.0130.05716.50
7.4.60.0070.06416.61
7.4.50.0070.04616.50
7.4.40.0080.04022.77
7.4.30.0090.05816.41
7.4.00.0030.05214.83
7.3.330.0000.03913.25
7.3.320.0030.03713.07
7.3.310.0030.03716.17
7.3.300.0000.04016.31
7.3.290.0030.06216.37
7.3.280.0120.05816.31
7.3.270.0130.06117.40
7.3.260.0100.05616.57
7.3.250.0110.05816.46
7.3.240.0100.06316.53
7.3.230.0170.06116.39
7.3.210.0030.06616.65
7.3.200.0060.06619.39
7.3.190.0170.05716.34
7.3.180.0030.06216.35
7.3.170.0100.06316.72
7.3.160.0040.07116.73
7.3.120.0030.04115.08
7.2.330.0100.05816.81
7.2.320.0190.05816.81
7.2.310.0160.05816.79
7.2.300.0130.05416.52
7.2.290.0040.06416.67
7.2.60.0000.05116.74
7.2.00.0040.04919.55
7.1.200.0030.04815.89
7.1.100.0070.04618.05
7.1.70.0030.04117.11
7.1.60.0130.07719.82
7.1.50.0170.06917.08
7.1.00.0070.06322.48
7.0.200.0060.04116.85
7.0.140.0030.13022.00
7.0.60.0200.12019.94
7.0.50.0070.11017.87
7.0.40.0070.13020.18
7.0.30.0170.08020.30
7.0.20.0400.07020.26
7.0.10.0270.12320.33
7.0.00.0030.07720.09
5.6.280.0130.11720.99
5.6.210.0100.12320.55
5.6.200.0100.07318.18
5.6.190.0030.09020.58
5.6.180.4030.07020.33
5.6.170.0370.11320.57
5.6.160.0000.09020.46
5.6.150.0200.12018.17
5.6.140.0030.10718.19
5.6.130.0100.12718.17
5.6.120.0100.13021.15
5.6.110.0130.12320.90
5.6.100.0100.13021.01
5.6.90.0070.08720.99
5.6.80.0130.12020.39
5.6.70.0300.11720.38
5.5.350.0000.06320.43
5.5.340.0070.12718.01
5.5.330.0030.09020.40
5.5.320.0300.12720.30
5.5.310.0230.10320.41
5.5.300.0030.08017.96
5.5.290.0030.08017.98
5.5.280.0030.08020.77
5.5.270.0200.13320.80
5.5.260.0000.08320.76
5.5.250.0000.08720.55
5.5.240.0070.13020.35
5.4.450.0800.10719.17
5.4.440.0630.10319.63
5.4.430.0400.10319.55
5.4.420.0570.11719.63
5.4.410.0930.10719.36
5.4.400.0670.09018.79
5.4.390.0370.09718.42
5.4.380.0200.11018.50
5.4.370.0100.10318.86
5.4.360.0230.09318.47
5.4.350.0330.09318.79
5.4.340.0400.07718.63
5.4.320.0110.07812.50
5.4.310.0050.08112.50
5.4.300.0090.07612.51
5.4.290.0080.07612.51
5.4.280.0100.07712.40
5.4.270.0090.07512.40
5.4.260.0070.12019.00
5.4.250.0200.10718.96
5.4.240.0100.12019.00
5.4.230.0100.10018.95
5.4.220.0100.10318.90
5.4.210.0170.10718.84
5.4.200.0000.11318.74
5.4.190.0170.11318.98
5.4.180.0030.11018.90
5.4.170.0070.12318.80
5.4.160.0070.10719.07
5.4.150.0070.11318.63
5.4.140.0070.12016.41
5.4.130.0230.11016.45
5.4.120.0030.10316.38
5.4.110.0100.12716.62
5.4.100.0130.10016.34
5.4.90.0170.11316.42
5.4.80.0200.11016.38
5.4.70.0100.12016.46
5.4.60.0100.10016.38
5.4.50.0030.11316.33
5.4.40.0030.10716.44
5.4.30.0130.10316.54
5.4.20.0100.11016.45
5.4.10.0170.10016.47
5.4.00.0130.09716.01
5.3.290.0040.07912.80
5.3.280.0100.13314.68
5.3.270.0130.10714.59
5.3.260.0030.11014.70
5.3.250.0130.10014.58
5.3.240.0130.12014.60
5.3.230.0100.11314.82
5.3.220.0070.11314.60
5.3.210.0000.11314.71
5.3.200.0100.11314.66
5.3.190.0130.10314.66
5.3.180.0070.10314.40
5.3.170.0200.10714.65
5.3.160.0070.11314.56
5.3.150.0070.10014.40
5.3.140.0200.11314.54
5.3.130.0030.11714.61
5.3.120.0130.09714.72
5.3.110.0130.09714.64
5.3.100.0130.11314.11
5.3.90.0070.11314.11
5.3.80.0030.10714.02
5.3.70.0100.10314.02
5.3.60.0070.06714.05
5.3.50.0170.06314.09
5.3.40.0070.06314.09
5.3.30.0070.06314.06
5.3.20.0100.04313.84
5.3.10.0100.07013.73
5.3.00.0130.07013.77
5.2.170.0070.04011.18
5.2.160.0030.05011.25
5.2.150.0200.03711.02
5.2.140.0070.03711.22
5.2.130.0030.04311.17
5.2.120.0030.04711.00
5.2.110.0070.04011.10
5.2.100.0070.05711.01
5.2.90.0030.04311.09
5.2.80.0030.04011.17
5.2.70.0200.04011.17
5.2.60.0000.05010.95
5.2.50.0030.06010.93
5.2.40.0000.06010.89
5.2.30.0030.06311.08
5.2.20.0000.05710.93
5.2.10.0100.04710.98
5.2.00.0070.04310.76
5.1.60.0130.0309.82
5.1.50.0070.04710.16
5.1.40.0100.0409.94
5.1.30.0000.04710.12
5.1.20.0030.03710.34
5.1.10.0030.03710.13
5.1.00.0030.03710.17
5.0.50.0000.0308.59
5.0.40.0100.0238.54
5.0.30.0000.0438.16
5.0.20.0070.0338.16
5.0.10.0000.0308.20
5.0.00.0000.0538.12
4.4.90.0000.0237.17
4.4.80.0030.0207.17
4.4.70.0100.0177.17
4.4.60.0000.0237.17
4.4.50.0030.0207.17
4.4.40.0000.0407.17
4.4.30.0070.0237.17
4.4.20.0030.0207.17
4.4.10.0070.0207.17
4.4.00.0070.0337.17
4.3.110.0100.0277.29
4.3.100.0030.0277.29
4.3.90.0030.0307.29
4.3.80.0000.0377.29
4.3.70.0030.0207.29
4.3.60.0000.0307.29
4.3.50.0070.0207.29
4.3.40.0070.0307.29
4.3.30.0030.0237.29
4.3.20.0000.0237.29
4.3.10.0000.0237.29
4.3.00.0070.0207.26

preferences:
47.14 ms | 400 KiB | 5 Q