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$07$usesomesillystringfor' . $char); $char = substr($hash, 28, 1); $dec = ord($char); $bin = decbin($dec); var_dump( $hash, $char, $dec, $bin ); } $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.0130.32718.55
8.3.50.0080.33221.89
8.3.40.0070.32818.57
8.3.30.0030.34119.14
8.3.20.0070.17420.21
8.3.10.0030.17923.60
8.3.00.0070.18020.70
8.2.180.0070.33216.32
8.2.170.0100.32522.96
8.2.160.0170.31620.39
8.2.150.0030.17724.18
8.2.140.0030.17724.66
8.2.130.0130.19026.16
8.2.120.0070.17322.16
8.2.110.0100.17820.82
8.2.100.0070.20017.72
8.2.90.0070.19518.16
8.2.80.0000.21218.03
8.2.70.0030.20318.03
8.2.60.0130.20517.93
8.2.50.0030.19818.10
8.2.40.0000.20218.22
8.2.30.0100.19118.04
8.2.20.0100.19117.59
8.2.10.0030.20117.73
8.2.00.0030.20317.79
8.1.280.0100.32425.92
8.1.270.0100.17523.91
8.1.260.0030.17726.35
8.1.250.0000.18028.09
8.1.240.0030.17922.18
8.1.230.0070.19920.90
8.1.220.0030.19817.76
8.1.210.0070.19819.04
8.1.200.0030.19917.35
8.1.190.0030.19817.10
8.1.180.0030.19818.10
8.1.170.0030.19920.61
8.1.160.0070.19522.00
8.1.150.0100.19018.68
8.1.140.0030.20017.48
8.1.130.0030.20117.73
8.1.120.0100.19217.37
8.1.110.0000.20217.38
8.1.100.0060.19517.38
8.1.90.0030.19817.48
8.1.80.0030.19817.42
8.1.70.0030.19817.39
8.1.60.0030.21317.46
8.1.50.0100.19117.59
8.1.40.0100.19017.48
8.1.30.0100.19317.61
8.1.20.0070.19517.54
8.1.10.0100.19317.50
8.1.00.0070.19617.35
8.0.300.0100.19319.77
8.0.290.0070.19516.73
8.0.280.0030.19718.31
8.0.270.0070.19416.83
8.0.260.0070.20916.81
8.0.250.0100.19216.86
8.0.240.0130.18816.94
8.0.230.0030.19816.94
8.0.220.0030.19916.80
8.0.210.0000.20316.80
8.0.200.0030.19816.81
8.0.190.0100.19316.83
8.0.180.0070.19716.88
8.0.170.0030.20016.88
8.0.160.0100.19216.83
8.0.150.0000.20016.80
8.0.140.0100.19416.78
8.0.130.0070.20713.35
8.0.120.0030.20016.85
8.0.110.0000.20316.71
8.0.100.0070.19616.75
8.0.90.0130.18816.84
8.0.80.0130.30316.87
8.0.70.0030.19816.83
8.0.60.0030.21716.90
8.0.50.0030.20416.79
8.0.30.0210.28717.08
8.0.20.0130.29517.40
8.0.10.0000.20017.04
8.0.00.0160.28316.74
7.4.330.0000.19915.16
7.4.320.0070.19416.39
7.4.300.0030.19916.36
7.4.290.0070.19516.60
7.4.280.0030.20016.50
7.4.270.0100.19516.61
7.4.260.0030.20016.62
7.4.250.0100.19416.59
7.4.240.0080.19316.48
7.4.230.0030.19716.50
7.4.220.0100.33816.54
7.4.210.0180.31216.52
7.4.200.0000.20116.55
7.4.190.0070.19416.41
7.4.160.0200.30216.46
7.4.150.0100.30617.40
7.4.140.0130.29517.86
7.4.130.0160.27916.36
7.4.120.0110.28916.36
7.4.110.0200.27516.48
7.4.100.0090.31616.48
7.4.90.0130.28416.46
7.4.80.0130.29216.33
7.4.70.0160.29316.59
7.4.60.0260.28716.42
7.4.50.0100.16416.41
7.4.40.0070.21722.77
7.4.30.0130.28716.49
7.4.00.0030.21815.14
7.3.330.0030.19613.22
7.3.320.0000.20013.23
7.3.310.0070.19516.17
7.3.300.0000.20116.19
7.3.290.0000.31016.20
7.3.280.0180.29616.25
7.3.270.0130.28817.40
7.3.260.0130.28816.29
7.3.250.0100.28616.49
7.3.240.0170.27816.51
7.3.230.0130.29616.47
7.3.210.0160.29916.67
7.3.200.0190.27919.39
7.3.190.0200.28516.51
7.3.180.0130.28116.32
7.3.170.0220.28516.32
7.3.160.0160.29716.39
7.3.120.0100.21814.96
7.2.330.0150.29316.75
7.2.320.0160.28016.52
7.2.310.0130.29016.75
7.2.300.0260.28616.73
7.2.290.0160.27716.60
7.2.60.0100.20516.95
7.2.00.0000.22219.52
7.1.200.0070.21715.67
7.1.100.0030.22218.11
7.1.70.0070.21516.88
7.1.60.0100.29819.29
7.1.50.0100.29316.86
7.1.00.0070.32322.31
7.0.200.0030.21116.67
7.0.140.0070.30322.00
7.0.60.0070.32019.86
7.0.50.0030.31717.88
7.0.40.0070.32320.11
7.0.30.0170.26020.23
7.0.20.0230.29020.09
7.0.10.0370.27020.30
7.0.00.0070.26020.12
5.6.280.0070.32021.07
5.6.210.0130.31020.45
5.6.200.0030.26718.20
5.6.190.0000.26020.39
5.6.180.0030.31020.61
5.6.170.0270.29020.62
5.6.160.0070.27020.39
5.6.150.0030.26018.17
5.6.140.0100.32018.29
5.6.130.0100.29318.29
5.6.120.0030.25721.13
5.6.110.0030.24321.00
5.6.100.0030.25720.97
5.6.90.0030.27321.11
5.6.80.0130.30720.44
5.6.70.0330.28320.36
5.5.350.0130.30320.45
5.5.340.0170.30718.07
5.5.330.0070.24320.42
5.5.320.0100.32020.34
5.5.310.0300.30720.24
5.5.300.0030.25018.03
5.5.290.0170.30017.99
5.5.280.0030.30320.88
5.5.270.0070.30720.77
5.5.260.0130.29720.87
5.5.250.0070.30320.69
5.5.240.0070.30720.29
5.4.450.0530.24319.39
5.4.440.0770.34019.20
5.4.430.1200.36019.16
5.4.420.0830.33319.44
5.4.410.1030.34719.48
5.4.400.0900.34018.88
5.4.390.1000.33019.25
5.4.380.0230.33318.50
5.4.370.0170.34718.86
5.4.360.0300.32018.68
5.4.350.0270.33318.65
5.4.340.0530.33318.81
5.4.320.0080.24112.51
5.4.310.0050.24612.50
5.4.300.0070.24212.51
5.4.290.0090.24212.50
5.4.280.0040.24812.40
5.4.270.0050.24612.40
5.4.260.0090.25012.38
5.4.250.0060.24212.38
5.4.240.0100.23912.38
5.4.230.0070.24612.37
5.4.220.0060.24412.38
5.4.210.0090.24412.38
5.4.200.0080.25112.37
5.4.190.0100.25312.38
5.4.180.0070.24212.37
5.4.170.0030.24612.38
5.4.160.0080.24112.38
5.4.150.0070.24712.38
5.4.140.0070.24412.06
5.4.130.0080.23912.05
5.4.120.0100.23612.00
5.4.110.0060.24512.00
5.4.100.0060.24512.00
5.4.90.0070.24412.00
5.4.80.0080.24512.00
5.4.70.0110.25612.00
5.4.60.0040.24212.00
5.4.50.0060.24111.99
5.4.40.0070.24011.98
5.4.30.0120.24111.98
5.4.20.0080.23911.98
5.4.10.0100.23711.98
5.4.00.0070.23611.47
5.3.290.0050.24912.80
5.3.280.0040.24412.71
5.3.270.0090.24312.73
5.3.260.0080.24812.71
5.3.250.0070.24512.72
5.3.240.0080.24212.72
5.3.230.0040.24712.71
5.3.220.0080.27112.68
5.3.210.0130.23612.68
5.3.200.0060.24012.68
5.3.190.0160.23312.68
5.3.180.0070.24112.67
5.3.170.0070.24212.67
5.3.160.0100.23712.68
5.3.150.0060.27712.67
5.3.140.0140.27412.66
5.3.130.0080.24312.66
5.3.120.0080.24512.66
5.3.110.0090.25212.66
5.3.100.0120.24512.12
5.3.90.0080.24112.11
5.3.80.0080.23812.09
5.3.70.0110.23812.09
5.3.60.0100.03712.13
5.3.50.0080.04512.08
5.3.40.0070.04612.07
5.3.30.0060.05312.04
5.3.20.0070.04211.82
5.3.10.0050.03711.79
5.3.00.0090.03611.77
5.2.170.0060.0319.35
5.2.160.0060.0309.35
5.2.150.0070.0319.35
5.2.140.0070.0319.35
5.2.130.0050.0329.31
5.2.120.0050.0329.31
5.2.110.0090.0269.31
5.2.100.0080.0269.32
5.2.90.0090.0259.31
5.2.80.0070.0299.30
5.2.70.0050.0309.30
5.2.60.0050.0319.26
5.2.50.0040.0309.23
5.2.40.0030.0309.20
5.2.30.0040.0339.18
5.2.20.0090.0269.18
5.2.10.0050.0359.08
5.2.00.0040.0338.94
5.1.60.0070.0248.23
5.1.50.0030.0248.22
5.1.40.0040.0238.21
5.1.30.0020.0288.55
5.1.20.0060.0278.58
5.1.10.0040.0288.30
5.1.00.0060.0258.30
5.0.50.0040.0196.79
5.0.40.0010.0216.64
5.0.30.0010.0336.46
5.0.20.0050.0176.43
5.0.10.0030.0266.40
5.0.00.0040.0316.39
4.4.90.0030.0234.81
4.4.80.0040.0144.80
4.4.70.0040.0224.79
4.4.60.0050.0184.80
4.4.50.0040.0184.81
4.4.40.0050.0244.80
4.4.30.0020.0204.80
4.4.20.0020.0164.86
4.4.10.0020.0164.86
4.4.00.0040.0234.82
4.3.110.0010.0184.73
4.3.100.0050.0144.71
4.3.90.0050.0124.70
4.3.80.0020.0244.70
4.3.70.0050.0154.69
4.3.60.0020.0194.70
4.3.50.0020.0224.70
4.3.40.0020.0264.66
4.3.30.0030.0153.47
4.3.20.0020.0163.45
4.3.10.0020.0163.41
4.3.00.0270.01313.14

preferences:
81.25 ms | 401 KiB | 5 Q