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$03$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.60.0100.03618.30
8.3.50.0150.03321.02
8.3.40.0130.03218.75
8.3.30.0000.03219.04
8.3.20.0000.01720.29
8.3.10.0060.01121.88
8.3.00.0060.01122.34
8.2.180.0150.01516.88
8.2.170.0160.01622.96
8.2.160.0160.01919.39
8.2.150.0000.01824.18
8.2.140.0030.01424.66
8.2.130.0000.03226.16
8.2.120.0070.01019.23
8.2.110.0040.01522.10
8.2.100.0060.01618.22
8.2.90.0000.01719.08
8.2.80.0000.01817.97
8.2.70.0040.01517.50
8.2.60.0040.01918.05
8.2.50.0040.01418.07
8.2.40.0030.01718.09
8.2.30.0000.01717.98
8.2.20.0070.01017.64
8.2.10.0090.00917.75
8.2.00.0060.01217.82
8.1.280.0130.03325.92
8.1.270.0000.01722.03
8.1.260.0060.01226.35
8.1.250.0000.01728.09
8.1.240.0040.01523.71
8.1.230.0030.01719.22
8.1.220.0000.01717.74
8.1.210.0040.01418.77
8.1.200.0070.01317.36
8.1.190.0030.01417.53
8.1.180.0000.01820.48
8.1.170.0040.02218.32
8.1.160.0030.01422.15
8.1.150.0030.01618.57
8.1.140.0000.01817.46
8.1.130.0070.01117.83
8.1.120.0090.00917.53
8.1.110.0000.02017.53
8.1.100.0030.01417.34
8.1.90.0000.01817.44
8.1.80.0040.01417.50
8.1.70.0070.01017.46
8.1.60.0030.01717.59
8.1.50.0060.01217.52
8.1.40.0060.01217.40
8.1.30.0000.01817.47
8.1.20.0000.01817.62
8.1.10.0040.01517.51
8.1.00.0090.00917.30
8.0.300.0000.01718.77
8.0.290.0030.01617.18
8.0.280.0070.01018.45
8.0.270.0000.01717.17
8.0.260.0000.01616.82
8.0.250.0070.01017.00
8.0.240.0000.01816.89
8.0.230.0030.01416.85
8.0.220.0000.01716.79
8.0.210.0000.01716.77
8.0.200.0000.01716.95
8.0.190.0040.01516.93
8.0.180.0030.01416.82
8.0.170.0040.01416.87
8.0.160.0100.01016.94
8.0.150.0070.01016.81
8.0.140.0040.01516.92
8.0.130.0040.01213.20
8.0.120.0060.01316.75
8.0.110.0070.01016.90
8.0.100.0030.01416.89
8.0.90.0060.01216.69
8.0.80.0100.02116.86
8.0.70.0030.01416.77
8.0.60.0040.01416.96
8.0.50.0090.00916.68
8.0.30.0090.02617.00
8.0.20.0120.02417.40
8.0.10.0040.01416.97
8.0.00.0140.03016.64
7.4.330.0040.01115.00
7.4.320.0030.01316.62
7.4.300.0030.01316.49
7.4.290.0000.01816.65
7.4.280.0070.01016.59
7.4.270.0070.01016.53
7.4.260.0150.00716.61
7.4.250.0090.00916.50
7.4.240.0050.01316.55
7.4.230.0070.01116.71
7.4.220.0100.02616.71
7.4.210.0070.02316.55
7.4.200.0080.00916.52
7.4.190.0030.01416.61
7.4.160.0140.02016.50
7.4.150.0160.02017.40
7.4.140.0200.02217.86
7.4.130.0190.01616.46
7.4.120.0170.02116.47
7.4.110.0030.03016.41
7.4.100.0140.02216.64
7.4.90.0130.02216.70
7.4.80.0070.02619.39
7.4.70.0100.02416.52
7.4.60.0030.03016.50
7.4.50.0030.01916.12
7.4.40.0030.01722.77
7.4.30.0110.02216.38
7.4.00.0130.01314.82
7.3.330.0070.00713.14
7.3.320.0030.01313.29
7.3.310.0000.01816.26
7.3.300.0030.01316.17
7.3.290.0120.01816.30
7.3.280.0100.02216.28
7.3.270.0120.02217.40
7.3.260.0200.01716.58
7.3.250.0110.02516.44
7.3.240.0070.02716.43
7.3.230.0160.02216.39
7.3.210.0120.02116.28
7.3.200.0070.02716.43
7.3.190.0090.02416.31
7.3.180.0040.02916.25
7.3.170.0090.02216.27
7.3.160.0070.03316.44
7.3.120.0100.02014.82
7.3.110.0100.02014.91
7.3.100.0030.02314.77
7.3.90.0030.02414.81
7.3.80.0000.02714.96
7.3.70.0040.02114.79
7.3.60.0190.01014.92
7.3.50.0000.02214.80
7.3.40.0090.01515.00
7.3.30.0030.02014.86
7.3.20.0000.02616.63
7.3.10.0090.02116.66
7.3.00.0070.02616.46
7.2.330.0100.02416.67
7.2.320.0130.02616.79
7.2.310.0060.02616.70
7.2.300.0180.02416.50
7.2.290.0100.02316.87
7.2.240.0070.02314.95
7.2.230.0120.01214.97
7.2.220.0060.02115.09
7.2.210.0100.01715.21
7.2.200.0030.01715.02
7.2.190.0100.02015.06
7.2.180.0030.01714.98
7.2.170.0000.02415.03
7.2.160.0030.02315.23
7.2.150.0000.02616.79
7.2.140.0130.01316.68
7.2.130.0080.02016.94
7.2.120.0090.01816.88
7.2.110.0070.01716.71
7.2.100.0070.02116.88
7.2.90.0100.02516.75
7.2.80.0100.02416.86
7.2.70.0100.01916.85
7.2.60.0080.02116.77
7.2.50.0040.02116.91
7.2.40.0080.01617.05
7.2.30.0100.01716.82
7.2.20.0050.02316.77
7.2.10.0080.02117.00
7.2.00.0060.02017.75
7.1.330.0060.02315.54
7.1.320.0030.02115.47
7.1.310.0030.01915.83
7.1.300.0060.01915.70
7.1.290.0030.02015.63
7.1.280.0060.01615.89
7.1.270.0040.02115.83
7.1.260.0100.01715.73
7.1.250.0070.01915.52
7.1.200.0030.01715.80
7.1.100.0030.02317.98
7.1.70.0000.01817.20
7.1.60.0070.04319.82
7.1.50.0060.04116.96
7.1.00.0000.04722.28
7.0.200.0030.01516.88
7.0.140.0030.08722.07
7.0.60.0170.09320.01
7.0.50.0100.09717.91
7.0.40.0170.06020.23
7.0.30.0200.09720.08
7.0.20.0270.05720.19
7.0.10.0370.07320.21
7.0.00.0030.05720.24
5.6.280.0030.09020.93
5.6.210.0100.06720.55
5.6.200.0130.08718.15
5.6.190.0000.05720.48
5.6.180.3800.05720.63
5.6.170.0270.07720.41
5.6.160.0100.05020.45
5.6.150.0100.05718.16
5.6.140.0070.05718.14
5.6.130.0130.07018.14
5.6.120.0130.04321.14
5.6.110.0100.09321.02
5.6.100.0130.09021.00
5.6.90.0130.09721.00
5.6.80.0130.08020.41
5.6.70.0230.09020.48
5.5.350.0070.09020.41
5.5.340.0000.07018.07
5.5.330.0100.10320.30
5.5.320.0300.08720.20
5.5.310.0200.05720.27
5.5.300.0030.07717.97
5.5.290.0030.09318.09
5.5.280.0070.05320.80
5.5.270.0030.08720.67
5.5.260.0030.05320.64
5.5.250.0030.05720.76
5.5.240.0070.08720.15
5.4.450.0700.07319.20
5.4.440.0830.09719.47
5.4.430.0770.07019.46
5.4.420.0700.07019.61
5.4.410.0200.05719.05
5.4.400.0430.07318.82
5.4.390.0570.08018.82
5.4.380.0330.05718.59
5.4.370.0170.06718.52
5.4.360.0200.06018.61
5.4.350.0170.06718.76
5.4.340.0170.06018.51
5.4.320.0150.05712.51
5.4.310.0090.04712.51
5.4.300.0080.05012.51
5.4.290.0050.05612.51
5.4.280.0060.05012.40
5.4.270.0080.04612.41
5.4.260.0030.07018.83
5.4.250.0200.06719.09
5.4.240.0100.09318.99
5.4.230.0200.08719.02
5.4.220.0130.07318.95
5.4.210.0100.07018.93
5.4.200.0300.06018.79
5.4.190.0230.08318.93
5.4.180.0130.07718.99
5.4.170.0070.10018.79
5.4.160.0170.08018.94
5.4.150.0230.07718.98
5.4.140.0070.07016.52
5.4.130.0170.08316.57
5.4.120.0100.07016.36
5.4.110.0100.08316.41
5.4.100.0100.07016.53
5.4.90.0230.06016.38
5.4.80.0230.07016.49
5.4.70.0070.07316.49
5.4.60.0070.07316.38
5.4.50.0170.07716.44
5.4.40.0100.06716.59
5.4.30.0000.07316.38
5.4.20.0030.09016.48
5.4.10.0030.08016.51
5.4.00.0230.06715.76
5.3.290.0100.05312.80
5.3.280.0100.07714.68
5.3.270.0170.06314.67
5.3.260.0070.08314.63
5.3.250.0200.08314.79
5.3.240.0130.07714.70
5.3.230.0200.06314.50
5.3.220.0230.08014.64
5.3.210.0100.08014.75
5.3.200.0000.08314.75
5.3.190.0170.08014.73
5.3.180.0230.07714.64
5.3.170.0130.08714.40
5.3.160.0030.09314.73
5.3.150.0070.07314.63
5.3.140.0130.08714.64
5.3.130.0230.08714.71
5.3.120.0070.08714.40
5.3.110.0070.07014.63
5.3.100.0070.10014.11
5.3.90.0070.07314.02
5.3.80.0070.06714.10
5.3.70.0100.07714.02
5.3.60.0130.06714.03
5.3.50.0100.07014.19
5.3.40.0100.08014.23
5.3.30.0270.04714.04
5.3.20.0100.06313.97
5.3.10.0100.05313.68
5.3.00.0030.06313.79
5.2.170.0070.04311.25
5.2.160.0030.05011.25
5.2.150.0100.06011.05
5.2.140.0030.05311.03
5.2.130.0100.05311.13
5.2.120.0170.04311.09
5.2.110.0100.04711.17
5.2.100.0170.05311.10
5.2.90.0070.04011.11
5.2.80.0100.05311.09
5.2.70.0000.06710.98
5.2.60.0070.04311.05
5.2.50.0100.05010.94
5.2.40.0030.04311.10
5.2.30.0000.05710.98
5.2.20.0070.04710.94
5.2.10.0070.05310.82
5.2.00.0170.04710.63
5.1.60.0170.04010.08
5.1.50.0070.0479.98
5.1.40.0100.03710.07
5.1.30.0100.04310.39
5.1.20.0070.04710.42
5.1.10.0000.03710.07
5.1.00.0070.03710.15
5.0.50.0030.0308.72
5.0.40.0070.0378.38
5.0.30.0030.0478.39
5.0.20.0000.0338.36
5.0.10.0130.0278.15
5.0.00.0030.0478.12
4.4.90.0030.0277.30
4.4.80.0030.0277.30
4.4.70.0070.0207.30
4.4.60.0030.0307.30
4.4.50.0070.0177.30
4.4.40.0130.0377.30
4.4.30.0100.0237.30
4.4.20.0170.0137.27
4.4.10.0030.0236.84
4.4.00.0030.0436.68
4.3.110.0000.0276.68
4.3.100.0030.0206.68
4.3.90.0070.0276.68
4.3.80.0070.0306.68
4.3.70.0070.0236.68
4.3.60.0030.0276.68
4.3.50.0070.0176.68
4.3.40.0100.0306.68
4.3.30.0070.0236.68
4.3.20.0070.0176.68
4.3.10.0000.0306.68
4.3.00.0170.0207.26

preferences:
41.8 ms | 401 KiB | 5 Q