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); $char = substr($hash, 28, 1); $dec = ord($char); $bin = decbin($dec); var_dump( $hash, $char, $dec, $bin, decbin(ord($char)) ); } $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.70.0100.07416.58
8.3.60.0160.07918.30
8.3.50.0180.07521.02
8.3.40.0100.06218.89
8.3.30.0100.06118.98
8.3.20.0070.06520.13
8.3.10.0030.03621.90
8.3.00.0070.05120.41
8.2.180.0100.06216.50
8.2.170.0100.06822.96
8.2.160.0110.07419.20
8.2.150.0030.03624.18
8.2.140.0000.03924.66
8.2.130.0070.03126.16
8.2.120.0060.03219.48
8.2.110.0100.05822.28
8.2.100.0000.05217.91
8.2.90.0030.03919.08
8.2.80.0160.03117.97
8.2.70.0030.04117.63
8.2.60.0000.04217.90
8.2.50.0000.04318.07
8.2.40.0030.04317.97
8.2.30.0070.03718.07
8.2.20.0000.04117.59
8.2.10.0030.03817.66
8.2.00.0100.03317.67
8.1.280.0070.09025.92
8.1.270.0030.03622.14
8.1.260.0070.03126.35
8.1.250.0060.03228.09
8.1.240.0030.03723.96
8.1.230.0030.04318.99
8.1.220.0030.03817.74
8.1.210.0030.03918.77
8.1.200.0000.04317.23
8.1.190.0040.03917.53
8.1.180.0060.03518.65
8.1.170.0030.03918.66
8.1.160.0040.03922.19
8.1.150.0030.03818.63
8.1.140.0030.03817.44
8.1.130.0030.03717.88
8.1.120.0030.03817.52
8.1.110.0060.03817.46
8.1.100.0030.03817.45
8.1.90.0030.03817.50
8.1.80.0100.03317.43
8.1.70.0030.03717.44
8.1.60.0030.04017.59
8.1.50.0030.03817.47
8.1.40.0030.03917.49
8.1.30.0060.03517.49
8.1.20.0030.03917.73
8.1.10.0070.03617.47
8.1.00.0030.04017.50
8.0.300.0070.03618.77
8.0.290.0070.03717.30
8.0.280.0060.03518.41
8.0.270.0000.04117.29
8.0.260.0040.03916.84
8.0.250.0030.03716.94
8.0.240.0000.04117.00
8.0.230.0030.03816.85
8.0.220.0000.04116.74
8.0.210.0030.04016.89
8.0.200.0000.04316.93
8.0.190.0030.03917.01
8.0.180.0030.03916.90
8.0.170.0030.04016.79
8.0.160.0030.03816.93
8.0.150.0000.04116.81
8.0.140.0000.04116.89
8.0.130.0040.03613.25
8.0.120.0030.03816.81
8.0.110.0030.03816.96
8.0.100.0030.03916.75
8.0.90.0000.04116.71
8.0.80.0100.05916.82
8.0.70.0000.04216.88
8.0.60.0000.04316.90
8.0.50.0060.03816.99
8.0.30.0110.05716.91
8.0.20.0190.05017.40
8.0.10.0070.03716.96
8.0.00.0170.05416.85
7.4.330.0030.03515.00
7.4.320.0000.04116.53
7.4.300.0000.04016.63
7.4.290.0070.03516.51
7.4.280.0030.03816.55
7.4.270.0030.03716.45
7.4.260.0030.04516.59
7.4.250.0030.04016.48
7.4.240.0030.03816.62
7.4.230.0060.03516.42
7.4.220.0130.06416.55
7.4.210.0130.05716.59
7.4.200.0030.03816.71
7.4.190.0070.03516.67
7.4.160.0070.06716.55
7.4.150.0070.06317.40
7.4.140.0100.06517.86
7.4.130.0140.05716.48
7.4.120.0160.05716.57
7.4.110.0250.04816.30
7.4.100.0120.05616.46
7.4.90.0170.05216.58
7.4.80.0120.07019.39
7.4.70.0000.06716.48
7.4.60.0060.06216.50
7.4.50.0000.05316.45
7.4.40.0070.04522.77
7.4.30.0090.05816.64
7.4.00.0070.04514.71
7.3.330.0070.03313.26
7.3.320.0100.03013.34
7.3.310.0030.03816.34
7.3.300.0030.03716.25
7.3.290.0130.05916.31
7.3.280.0090.06116.34
7.3.270.0130.05417.40
7.3.260.0140.05616.40
7.3.250.0130.05916.30
7.3.240.0130.06216.44
7.3.230.0130.06516.39
7.3.210.0120.05716.44
7.3.200.0130.06516.65
7.3.190.0160.05116.59
7.3.180.0100.06116.50
7.3.170.0070.07016.29
7.3.160.0090.06916.31
7.3.120.0030.05114.52
7.2.330.0130.05716.64
7.2.320.0150.05916.64
7.2.310.0070.06916.54
7.2.300.0060.06616.80
7.2.290.0130.05216.87
7.2.60.0030.04116.78
7.1.200.0070.04315.82
7.1.70.0000.04517.25
7.1.60.0070.09419.82
7.1.50.0100.05617.09
7.1.00.0030.06722.44
7.0.200.0030.04416.76
7.0.140.0030.12322.09
7.0.70.0000.08321.78
7.0.60.0070.07721.75
7.0.50.0030.07722.16
7.0.40.0000.08020.07
7.0.30.0030.06720.11
7.0.20.0000.07020.17
7.0.10.0070.10720.09
7.0.00.0070.08320.14
5.6.280.0030.12721.10
5.6.220.0030.08320.58
5.6.210.0030.08020.75
5.6.200.0000.09021.12
5.6.190.0130.11320.94
5.6.180.0030.08020.98
5.6.170.0030.07721.04
5.6.160.0070.06320.97
5.6.150.0100.09021.13
5.6.140.0000.07021.05
5.6.130.0030.06721.05
5.6.120.0030.11021.03
5.6.110.0070.06321.03
5.6.100.0000.14020.93
5.6.90.0100.10321.04
5.6.80.0100.06720.47
5.6.70.0130.07020.41
5.6.60.0000.08020.41
5.6.50.0030.12720.44
5.6.40.0000.12020.40
5.6.30.0030.13320.38
5.6.20.0030.13320.29
5.6.10.0100.12020.38
5.6.00.0000.09720.42
5.5.360.0070.07320.54
5.5.350.0070.07320.43
5.5.340.0070.07720.87
5.5.330.0000.08320.89
5.5.320.0030.06320.88
5.5.310.0070.07320.93
5.5.300.0100.10020.92
5.5.290.0070.06320.77
5.5.280.0130.12720.73
5.5.270.0030.12320.75
5.5.260.0100.08020.79
5.5.250.0000.06720.61
5.5.240.0000.07720.22
5.5.230.0000.07720.11
5.5.220.0100.11020.13
5.5.210.0130.10320.20
5.5.200.0100.13320.23
5.5.190.0000.12720.23
5.5.180.0030.12720.18
5.5.160.0030.13020.00
5.5.150.0030.13720.08
5.5.140.0100.13020.21
5.5.130.0070.14020.19
5.5.120.0030.12020.17
5.5.110.0130.12720.18
5.5.100.0030.13720.16
5.5.90.0100.13020.07
5.5.80.0230.10720.15
5.5.70.0030.08719.97
5.5.60.0130.13020.05
5.5.50.0200.11020.06
5.5.40.0070.12020.05
5.5.30.0030.10020.06
5.5.20.0070.09020.14
5.5.10.0070.07320.02
5.5.00.0100.11320.04
5.4.450.0000.08019.45
5.4.440.0070.09719.55
5.4.430.0030.06319.17
5.4.420.0070.11019.22
5.4.410.0000.07719.22
5.4.400.0030.07318.96
5.4.390.0070.07019.03
5.4.380.0000.07719.11
5.4.370.0100.07019.02
5.4.360.0000.10318.90
5.4.350.0000.07719.05
5.4.340.0070.12719.07
5.4.320.0130.11319.04
5.4.310.0030.13318.95
5.4.300.0100.13019.22
5.4.290.0130.12318.87
5.4.280.0030.09319.13
5.4.270.0070.14019.04
5.4.260.0030.14319.04
5.4.250.0030.11019.16
5.4.240.0030.13318.84
5.4.230.0070.13019.20
5.4.220.0030.09319.19
5.4.210.0000.07719.13
5.4.200.0070.13018.84
5.4.190.0030.10719.22
5.4.180.0130.11319.11
5.4.170.0070.13319.11
5.4.160.0030.13019.21
5.4.150.0130.11719.01
5.4.140.0000.11716.46
5.4.130.0030.13316.42
5.4.120.0000.08316.46
5.4.110.0070.10016.43
5.4.100.0130.12716.36
5.4.90.0100.06716.36
5.4.80.0200.11016.34
5.4.70.0030.13016.38
5.4.60.0000.12316.36
5.4.50.0130.12316.31
5.4.40.0070.12016.41
5.4.30.0000.13016.45
5.4.20.0130.10316.32
5.4.10.0030.08716.24
5.4.00.0030.09715.77
5.3.290.0070.13314.76
5.3.280.0000.13314.60
5.3.270.0070.12714.56
5.3.260.0000.14014.63
5.3.250.0030.08014.66
5.3.240.0070.11714.60
5.3.230.0030.12014.74
5.3.220.0170.11314.66
5.3.210.0030.07314.50
5.3.200.0070.13314.64
5.3.190.0070.09014.69
5.3.180.0070.13314.67
5.3.170.0030.12014.62
5.3.160.0030.09714.52
5.3.150.0070.13014.49
5.3.140.0000.12714.51
5.3.130.0030.13014.62
5.3.120.0070.11314.54
5.3.110.0100.13014.68
5.3.100.0230.10714.18
5.3.90.0000.12714.08
5.3.80.0070.12314.01
5.3.70.0070.13013.91
5.3.60.0130.06314.12
5.3.50.0070.08014.09
5.3.40.0030.05014.09
5.3.30.0000.08314.11
5.3.20.0030.07313.66
5.3.10.0000.04013.74
5.3.00.0000.03713.80
5.2.170.0000.05711.51
5.2.160.0030.06711.51
5.2.150.0000.06311.51
5.2.140.0070.06311.51
5.2.130.0070.05711.51
5.2.120.0000.06011.51
5.2.110.0030.05711.51
5.2.100.0000.04711.51
5.2.90.0070.05011.51
5.2.80.0000.04711.51
5.2.70.0000.03711.51
5.2.60.0070.04311.51
5.2.50.0100.05711.51
5.2.40.0000.03311.51
5.2.30.0030.02311.51
5.2.20.0100.05711.51
5.2.10.0000.06011.51
5.2.00.0030.06011.51
5.1.60.0030.05311.51
5.1.50.0000.05011.51
5.1.40.0070.05011.51
5.1.30.0000.06011.51
5.1.20.0030.05711.51
5.1.10.0000.05011.51
5.1.00.0030.03711.51
5.0.50.0030.02711.51
5.0.40.0030.04311.51
5.0.30.0030.06011.51
5.0.20.0000.04311.51
5.0.10.0030.04311.51
5.0.00.0030.05011.51
4.4.90.0030.03311.51
4.4.80.0030.02011.51
4.4.70.0030.02711.51
4.4.60.0000.03711.51
4.4.50.0000.03711.51
4.4.40.0100.04011.51
4.4.30.0070.03011.51
4.4.20.0000.03711.51
4.4.10.0000.03011.51
4.4.00.0000.03311.51
4.3.110.0030.03711.51
4.3.100.0030.03311.51
4.3.90.0000.03011.51
4.3.80.0030.04711.51
4.3.70.0000.03311.51
4.3.60.0000.03011.51
4.3.50.0000.02311.51
4.3.40.0000.04011.51
4.3.30.0000.02711.51
4.3.20.0030.03711.51
4.3.10.0000.03711.51
4.3.00.0030.03311.51

preferences:
40.35 ms | 401 KiB | 5 Q