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($password) { $hash = crypt($password, '$2y$07$usesomesillystringforsalt$'); $char = substr($hash, 28, 1); $dec = ord($char); $bin = decbin($dec); var_dump( $hash, $char, $dec, $bin ); } meow('secret'); meow('boegaboe'); meow('42'); meow('Ford Prefect'); meow('Arthur Dent');

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.40.0070.08018.62
8.3.30.0170.07018.95
8.3.20.0070.04020.34
8.3.10.0030.04321.95
8.3.00.0000.04722.37
8.2.170.0100.07722.96
8.2.160.0030.08219.21
8.2.150.0100.03724.18
8.2.140.0070.04024.66
8.2.130.0100.03626.16
8.2.120.0030.04419.11
8.2.110.0000.04819.33
8.2.100.0120.05017.59
8.2.90.0070.04617.50
8.2.80.0000.05117.97
8.2.70.0030.04917.80
8.2.60.0030.04718.16
8.2.50.0030.04718.10
8.2.40.0060.04920.92
8.2.30.0070.04619.17
8.2.20.0000.05117.59
8.2.10.0130.03817.59
8.2.00.0070.04917.79
8.1.270.0030.04421.91
8.1.260.0000.04626.35
8.1.250.0030.04328.09
8.1.240.0130.06622.20
8.1.230.0060.04920.92
8.1.220.0030.04817.76
8.1.210.0070.05018.77
8.1.200.0070.04617.22
8.1.190.0000.05317.00
8.1.180.0090.04418.10
8.1.170.0100.04118.37
8.1.160.0030.04718.77
8.1.150.0030.04918.86
8.1.140.0090.04117.48
8.1.130.0000.05017.70
8.1.120.0000.05117.39
8.1.110.0030.05217.30
8.1.100.0070.04617.40
8.1.90.0030.04817.41
8.1.80.0060.04417.39
8.1.70.0090.04117.29
8.1.60.0070.05217.43
8.1.50.0040.05017.58
8.1.40.0060.04517.40
8.1.30.0030.05017.49
8.1.20.0030.04917.62
8.1.10.0060.04517.39
8.1.00.0030.04917.33
8.0.300.0000.05318.77
8.0.290.0070.04616.75
8.0.280.0000.05018.25
8.0.270.0000.05016.66
8.0.260.0000.05016.76
8.0.250.0070.04416.90
8.0.240.0000.05116.82
8.0.230.0070.04416.87
8.0.220.0030.04716.82
8.0.210.0030.04716.85
8.0.200.0000.05016.79
8.0.190.0030.05016.82
8.0.180.0000.05116.78
8.0.170.0030.04716.71
8.0.160.0030.04916.71
8.0.150.0030.05016.66
8.0.140.0070.04416.83
8.0.130.0060.04213.34
8.0.120.0030.04816.71
8.0.110.0060.04516.78
8.0.100.0030.04916.76
8.0.90.0030.04816.88
8.0.80.0100.07416.88
8.0.70.0000.05016.66
8.0.60.0000.05116.70
8.0.50.0070.04716.71
8.0.30.0180.06916.78
8.0.20.0080.07317.40
8.0.10.0030.04717.02
8.0.00.0130.06816.74
7.4.330.0060.04215.04
7.4.320.0030.04716.49
7.4.300.0040.04616.51
7.4.290.0030.04716.61
7.4.280.0030.04716.59
7.4.270.0070.04316.57
7.4.260.0030.05216.43
7.4.250.0070.04516.45
7.4.240.0020.04816.46
7.4.230.0090.04116.66
7.4.220.0150.07616.47
7.4.210.0090.07316.47
7.4.200.0030.04716.66
7.4.190.0030.04716.77
7.4.160.0180.07016.27
7.4.150.0160.07617.40
7.4.140.0200.06417.86
7.4.130.0140.06716.64
7.4.120.0110.07616.40
7.4.110.0120.07016.62
7.4.100.0100.07216.58
7.4.90.0100.07016.53
7.4.80.0130.07919.39
7.4.70.0130.06716.59
7.4.60.0130.06616.43
7.4.50.0030.05716.47
7.4.40.0070.05622.77
7.4.30.0070.07316.36
7.4.00.0070.05314.71
7.3.330.0030.04513.02
7.3.320.0030.04513.05
7.3.310.0030.04716.26
7.3.300.0030.04616.24
7.3.290.0030.07616.26
7.3.280.0060.07616.20
7.3.270.0030.07917.40
7.3.260.0150.06816.20
7.3.250.0190.06416.26
7.3.240.0170.06516.26
7.3.230.0130.07216.53
7.3.210.0200.06016.59
7.3.200.0070.07116.18
7.3.190.0060.07716.45
7.3.180.0070.07316.32
7.3.170.0120.06716.46
7.3.160.0130.06716.37
7.3.120.0030.06114.64
7.3.10.0070.05416.59
7.3.00.0060.05816.68
7.2.330.0100.07216.55
7.2.320.0210.06216.30
7.2.310.0110.06816.64
7.2.300.0030.07616.71
7.2.290.0160.07016.63
7.2.130.0000.06016.89
7.2.120.0070.05816.36
7.2.110.0000.06916.71
7.2.100.0160.04916.77
7.2.90.0030.05816.73
7.2.80.0000.05716.83
7.2.70.0030.05916.82
7.2.60.0120.05016.74
7.2.50.0030.06116.89
7.2.40.0030.05616.80
7.2.30.0030.05716.93
7.2.20.0070.05916.70
7.2.10.0000.06316.88
7.2.00.0000.06318.09
7.1.250.0030.05515.73
7.1.200.0040.05615.84
7.1.100.0030.06418.23
7.1.70.0030.05216.86
7.1.60.0070.10919.82
7.1.50.0030.10316.77
7.1.00.0000.07722.36
7.0.200.0230.05216.71
7.0.140.0030.14022.07
7.0.60.0170.12020.08
7.0.50.0070.09717.95
7.0.40.0130.09020.02
7.0.30.0200.08320.30
7.0.20.0230.13320.24
7.0.10.0130.08320.23
7.0.00.0070.12020.24
5.6.280.0100.13321.04
5.6.210.0070.13020.51
5.6.200.0030.15718.29
5.6.190.0130.14720.46
5.6.180.0300.12720.48
5.6.170.0230.09020.53
5.6.160.0070.09020.41
5.6.150.0070.10718.19
5.6.140.0100.14718.27
5.6.130.0130.13018.17
5.6.120.0070.08320.98
5.6.110.0030.15021.15
5.6.100.0070.14721.05
5.6.90.0070.13021.00
5.6.80.0070.13020.44
5.6.70.4500.08720.41
5.5.350.0200.08320.32
5.5.340.0070.13017.99
5.5.330.0070.14020.37
5.5.320.0400.13720.42
5.5.310.0200.10320.30
5.5.300.0070.14017.98
5.5.290.0000.15717.98
5.5.280.0070.10320.80
5.5.270.0070.10320.88
5.5.260.0030.12320.77
5.5.250.0230.13020.75
5.5.240.0230.13720.19
5.4.450.0030.12719.31
5.4.440.0970.11319.58
5.4.430.0670.11019.46
5.4.420.0700.11019.58
5.4.410.0930.10319.45
5.4.400.0330.11718.84
5.4.390.0500.10718.84
5.4.380.0270.11318.48
5.4.370.0170.11318.53
5.4.360.0170.11318.57
5.4.350.0200.11018.75
5.4.340.0200.11018.46
5.4.320.0120.09512.50
5.4.310.0100.09112.50
5.4.300.0050.09612.50
5.4.290.0080.09112.50
5.4.280.0080.08312.40
5.4.270.0080.08912.40
5.4.260.0130.14318.73
5.4.250.0100.12719.05
5.4.240.0100.15018.88
5.4.230.0070.12718.92
5.4.220.0130.12018.62
5.4.210.0200.14018.83
5.4.200.0000.13718.95
5.4.190.0170.13018.70
5.4.180.0230.11018.73
5.4.170.0100.13018.61
5.4.160.0070.13018.94
5.4.150.0130.13718.93
5.4.140.0130.13316.38
5.4.130.0070.14316.32
5.4.120.0030.12316.37
5.4.110.0170.11716.34
5.4.100.0070.14316.58
5.4.90.0070.12316.34
5.4.80.0070.14016.41
5.4.70.0230.13716.38
5.4.60.0130.12016.24
5.4.50.0100.11316.26
5.4.40.0230.11016.37
5.4.30.0100.14016.51
5.4.20.0100.11716.31
5.4.10.0100.13716.40
5.4.00.0170.13315.83
5.3.290.0060.08712.80
5.3.280.0170.11314.68
5.3.270.0070.12314.44
5.3.260.0070.13714.69
5.3.250.0170.13714.74
5.3.240.0030.12014.67
5.3.230.0170.11714.69
5.3.220.0100.11714.64
5.3.210.0130.12014.65
5.3.200.0200.13714.59
5.3.190.0130.14014.56
5.3.180.0130.13714.58
5.3.170.0000.14714.56
5.3.160.0030.11714.64
5.3.150.0030.13014.59
5.3.140.0030.12314.72
5.3.130.0170.14014.63
5.3.120.0170.11714.61
5.3.110.0070.14014.56
5.3.100.0070.12014.12
5.3.90.0100.12014.24
5.3.80.0130.12014.02
5.3.70.0130.12014.00
5.3.60.0100.06014.13
5.3.50.0130.05014.09
5.3.40.0100.07313.98
5.3.30.0070.07713.97
5.3.20.0070.05013.91
5.3.10.0070.04713.70
5.3.00.0070.05313.68
5.2.170.0130.03711.08
5.2.160.0070.04011.04
5.2.150.0070.04011.06
5.2.140.0100.05711.03
5.2.130.0130.03310.97
5.2.120.0170.03311.01
5.2.110.0000.04311.01
5.2.100.0130.03311.12
5.2.90.0030.04011.03
5.2.80.0130.03711.00
5.2.70.0070.05310.85
5.2.60.0000.04710.95
5.2.50.0070.03710.78
5.2.40.0070.05310.92
5.2.30.0000.04710.73
5.2.20.0100.04711.08
5.2.10.0070.03710.84
5.2.00.0100.05010.63
5.1.60.0000.04010.08
5.1.50.0070.0339.96
5.1.40.0030.0339.92
5.1.30.0100.03310.29
5.1.20.0070.05010.41
5.1.10.0100.03310.14
5.1.00.0030.04010.05
5.0.50.0030.0408.50
5.0.40.0100.0208.49
5.0.30.0070.0408.38
5.0.20.0030.0278.26
5.0.10.0000.0438.27
5.0.00.0100.0478.14
4.4.90.0000.0237.38
4.4.80.0030.0237.38
4.4.70.0070.0177.38
4.4.60.0030.0307.38
4.4.50.0000.0237.38
4.4.40.0100.0277.38
4.4.30.0070.0177.38
4.4.20.0030.0237.38
4.4.10.0070.0237.38
4.4.00.0000.0477.38
4.3.110.0030.0207.38
4.3.100.0030.0237.38
4.3.90.0000.0237.38
4.3.80.0000.0407.38
4.3.70.0030.0207.38
4.3.60.0030.0307.38
4.3.50.0030.0277.38
4.3.40.0070.0377.38
4.3.30.0000.0277.38
4.3.20.0000.0237.38
4.3.10.0130.0177.38
4.3.00.0100.0207.26

preferences:
43.18 ms | 400 KiB | 5 Q