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 = chr($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.60.0100.03418.43
8.3.50.0080.04221.08
8.3.40.0070.03218.84
8.3.30.0030.03519.07
8.3.20.0030.01720.20
8.3.10.0040.01821.90
8.3.00.0060.01522.64
8.2.180.0130.02716.38
8.2.170.0130.02622.96
8.2.160.0060.03219.20
8.2.150.0090.01224.18
8.2.140.0060.01524.66
8.2.130.0040.01826.16
8.2.120.0040.01819.10
8.2.110.0100.01321.98
8.2.100.0070.02019.57
8.2.90.0040.01918.97
8.2.80.0080.01517.97
8.2.70.0030.02017.63
8.2.60.0030.01917.93
8.2.50.0040.01918.07
8.2.40.0030.01917.91
8.2.30.0030.01917.93
8.2.20.0040.01917.59
8.2.10.0000.02217.68
8.2.00.0030.02017.75
8.1.280.0130.04325.92
8.1.270.0030.01722.10
8.1.260.0060.01626.35
8.1.250.0030.01728.09
8.1.240.0030.04523.91
8.1.230.0030.02219.16
8.1.220.0100.01317.74
8.1.210.0060.01618.77
8.1.200.0040.02117.35
8.1.190.0070.01517.39
8.1.180.0030.02018.74
8.1.170.0070.01618.50
8.1.160.0060.01622.05
8.1.150.0000.02218.55
8.1.140.0030.01917.32
8.1.130.0040.01817.76
8.1.120.0000.02117.45
8.1.110.0040.02117.34
8.1.100.0070.01417.27
8.1.90.0040.01917.37
8.1.80.0040.01817.43
8.1.70.0060.01617.37
8.1.60.0080.01917.47
8.1.50.0000.02217.57
8.1.40.0000.02317.50
8.1.30.0030.02017.57
8.1.20.0000.02217.67
8.1.10.0030.02017.59
8.1.00.0000.02317.39
8.0.300.0070.01618.77
8.0.290.0060.01617.18
8.0.280.0040.01818.25
8.0.270.0060.01617.10
8.0.260.0030.01716.73
8.0.250.0060.01516.88
8.0.240.0060.01616.88
8.0.230.0040.01816.86
8.0.220.0000.02116.93
8.0.210.0040.01816.93
8.0.200.0000.02116.91
8.0.190.0030.01816.94
8.0.180.0000.02216.88
8.0.170.0030.01916.87
8.0.160.0030.02016.93
8.0.150.0030.01916.96
8.0.140.0000.02216.75
8.0.130.0060.01513.33
8.0.120.0000.02216.81
8.0.110.0000.02216.90
8.0.100.0060.01616.89
8.0.90.0030.01916.88
8.0.80.0130.02516.84
8.0.70.0000.02216.79
8.0.60.0000.02216.72
8.0.50.0000.02216.93
8.0.30.0140.02716.89
8.0.20.0120.02817.40
8.0.10.0000.02217.03
8.0.00.0110.02816.85
7.4.330.0030.04615.00
7.4.320.0000.05016.55
7.4.300.0030.04716.54
7.4.290.0100.04216.61
7.4.280.0060.04416.50
7.4.270.0030.04716.50
7.4.260.0030.04816.38
7.4.250.0060.04516.61
7.4.240.0030.04716.63
7.4.230.0130.03816.57
7.4.220.0190.07616.56
7.4.210.0050.08316.52
7.4.200.0000.05016.34
7.4.190.0030.04716.64
7.4.160.0230.06016.43
7.4.150.0100.07117.40
7.4.140.0130.07717.86
7.4.130.0110.07116.55
7.4.120.0150.06616.51
7.4.110.0100.07116.55
7.4.100.0160.07616.61
7.4.90.0070.07316.62
7.4.80.0130.07719.39
7.4.70.0130.06816.51
7.4.60.0160.06316.61
7.4.50.0030.05716.71
7.4.40.0130.04922.77
7.4.30.0110.06816.39
7.4.10.0050.06015.01
7.4.00.0080.05714.99
7.3.330.0000.04813.30
7.3.320.0000.05013.11
7.3.310.0090.04116.20
7.3.300.0000.05016.16
7.3.290.0000.07916.29
7.3.280.0080.07416.33
7.3.270.0160.06517.40
7.3.260.0120.06716.49
7.3.250.0080.07216.45
7.3.240.0130.07316.23
7.3.230.0170.07116.56
7.3.210.0070.07316.32
7.3.200.0140.06916.68
7.3.190.0120.07016.21
7.3.180.0130.06516.48
7.3.170.0100.06916.34
7.3.160.0100.06916.36
7.3.130.0100.05314.82
7.3.120.0030.06114.71
7.3.110.0080.06014.87
7.3.100.0070.05314.96
7.3.90.0070.05614.96
7.3.80.0020.06014.92
7.3.70.0100.05314.85
7.3.60.0020.05814.61
7.3.50.0070.05814.56
7.3.40.0080.05314.52
7.3.30.0020.05614.69
7.3.20.0100.05116.72
7.3.10.0080.05216.62
7.3.00.0020.05616.75
7.2.330.0100.07216.66
7.2.320.0240.06416.68
7.2.310.0130.06516.75
7.2.300.0100.07316.43
7.2.290.0040.07616.23
7.2.260.0080.05714.94
7.2.250.0050.06114.91
7.2.240.0020.05514.90
7.2.230.0070.05815.10
7.2.220.0020.05915.02
7.2.210.0030.05815.01
7.2.200.0060.05214.98
7.2.190.0030.05814.78
7.2.180.0080.05115.01
7.2.170.0020.05815.00
7.2.160.0070.05215.14
7.2.150.0100.05016.94
7.2.140.0030.05516.61
7.2.130.0080.05016.93
7.2.120.0050.05516.98
7.2.110.0030.06016.83
7.2.100.0050.05616.82
7.2.90.0050.05816.92
7.2.80.0030.05416.93
7.2.70.0020.05816.86
7.2.60.0030.06016.95
7.2.50.0020.05716.88
7.2.40.0030.05316.86
7.2.30.0070.05216.94
7.2.20.0070.05616.96
7.2.10.0070.05116.88
7.2.00.0070.05116.77
7.1.330.0030.05815.83
7.1.320.0100.05315.71
7.1.310.0070.05115.79
7.1.300.0070.05315.86
7.1.290.0030.05515.81
7.1.280.0000.06315.55
7.1.270.0030.05715.72
7.1.260.0050.05415.68
7.1.250.0030.05315.65
7.1.240.0030.05615.59
7.1.230.0030.05715.77
7.1.220.0030.05615.74
7.1.210.0000.06215.64
7.1.200.0020.05915.75
7.1.190.0030.05815.73
7.1.180.0020.05715.80
7.1.170.0050.05915.66
7.1.160.0030.05415.59
7.1.150.0020.05615.78
7.1.140.0030.05715.80
7.1.130.0050.05515.55
7.1.120.0030.05715.85
7.1.110.0020.05615.86
7.1.100.0100.05115.71
7.1.90.0030.05615.83
7.1.80.0080.05115.85
7.1.70.0060.05116.31
7.1.60.0080.06917.08
7.1.50.0080.06416.21
7.1.40.0020.05715.63
7.1.30.0020.05715.71
7.1.20.0050.05515.65
7.1.10.0030.05715.56
7.1.00.0070.05817.88
7.0.330.0020.05415.08
7.0.320.0050.05715.37
7.0.310.0050.05115.36
7.0.300.0050.05615.44
7.0.290.0070.05515.42
7.0.280.0060.05215.45
7.0.270.0030.05715.46
7.0.260.0050.05315.37
7.0.250.0070.05415.16
7.0.240.0050.05915.39
7.0.230.0050.05215.27
7.0.220.0100.05015.17
7.0.210.0080.05015.39
7.0.200.0060.06515.64
7.0.190.0050.05215.52
7.0.180.0050.05915.59
7.0.170.0070.05515.22
7.0.160.0030.05415.38
7.0.150.0080.05215.27
7.0.140.0110.08017.69
7.0.130.0020.05515.48
7.0.120.0020.05515.38
7.0.110.0070.05515.38
7.0.100.0040.09416.86
7.0.90.0060.09016.96
7.0.80.0090.07616.90
7.0.70.0020.07216.89
7.0.60.0070.08916.94
7.0.50.0070.08516.97
7.0.40.0060.08215.71
7.0.30.0070.08115.62
7.0.20.0040.06715.70
7.0.10.0120.07215.73
7.0.00.0100.07715.57
5.6.400.0050.05514.22
5.6.390.0030.05814.17
5.6.380.0070.05614.24
5.6.370.0030.05414.28
5.6.360.0080.05214.16
5.6.350.0050.05314.32
5.6.340.0060.05614.34
5.6.330.0080.05614.42
5.6.320.0060.05314.29
5.6.310.0030.05514.15
5.6.300.0020.05914.24
5.6.290.0060.05214.26
5.6.280.0060.08216.48
5.6.270.0030.05714.18
5.6.260.0020.05514.17
5.6.250.0040.09416.34
5.6.240.0060.08216.41
5.6.230.0040.07116.33
5.6.220.0080.08316.36
5.6.210.0030.08816.35
5.6.200.0070.06816.43
5.6.190.0130.09216.59
5.6.180.0080.08616.43
5.6.170.0080.08316.41
5.6.160.0080.08016.61
5.6.150.0080.07916.38
5.6.140.0070.08616.45
5.6.130.0030.08016.42
5.6.120.0080.08216.46
5.6.110.0030.08716.34
5.6.100.0060.08316.51
5.6.90.0080.08416.49
5.6.80.0070.07616.40
5.6.70.0030.06816.12
5.6.60.0080.07916.21
5.6.50.0070.07716.24
5.6.40.0100.06116.20
5.6.30.0080.07416.09
5.6.20.0030.08516.30
5.6.10.0080.08016.26
5.6.00.0090.07816.33
5.5.380.0090.07016.25
5.5.370.0100.08316.27
5.5.360.0040.07816.18
5.5.350.0030.07116.19
5.5.340.0080.08416.20
5.5.330.0080.07216.29
5.5.320.0080.08716.52
5.5.310.0060.08416.39
5.5.300.0100.08316.41
5.5.290.0060.08416.46
5.5.280.0060.07116.32
5.5.270.0100.07316.45
5.5.260.0030.07916.45
5.5.250.0080.07616.28
5.5.240.0070.08416.18
5.5.230.0040.07816.15
5.5.220.0030.08516.08
5.5.210.0060.08216.19
5.5.200.0010.06816.02
5.5.190.0090.08116.12
5.5.180.0050.06416.20
5.5.170.0050.05214.16
5.5.160.0060.08316.17
5.5.150.0090.07916.06
5.5.140.0030.08316.06
5.5.130.0090.07816.05
5.5.120.0060.07516.15
5.5.110.0040.07016.21
5.5.100.0060.06516.10
5.5.90.0070.08216.08
5.5.80.0070.07116.20
5.5.70.0080.08316.07
5.5.60.0080.06616.14
5.5.50.0100.07316.08
5.5.40.0080.08516.00
5.5.30.0100.08016.01
5.5.20.0060.08515.91
5.5.10.0090.08415.92
5.5.00.0040.08516.20
5.4.450.0080.07914.25
5.4.440.0090.07314.23
5.4.430.0060.07314.33
5.4.420.0090.06614.33
5.4.410.0070.07614.20
5.4.400.0060.08414.22
5.4.390.0040.08314.07
5.4.380.0070.08014.16
5.4.370.0020.08714.17
5.4.360.0080.07914.04
5.4.350.0060.06314.08
5.4.340.0080.08014.15
5.4.330.0020.05711.72
5.4.320.0040.08014.25
5.4.310.0040.08014.21
5.4.300.0040.07514.24
5.4.290.0030.07314.13
5.4.280.0060.06514.15
5.4.270.0040.08313.99
5.4.260.0020.08313.97
5.4.250.0030.06014.10
5.4.240.0040.08014.23
5.4.230.0050.06214.15
5.4.220.0040.07814.02
5.4.210.0030.08314.05
5.4.200.0010.07014.14
5.4.190.0040.08014.12
5.4.180.0070.06214.19
5.4.170.0070.07614.08
5.4.160.0020.08214.04
5.4.150.0060.08514.14
5.4.140.0010.08113.27
5.4.130.0030.07913.27
5.4.120.0060.07813.25
5.4.110.0040.07913.21
5.4.100.0070.08113.30
5.4.90.0040.07913.23
5.4.80.0060.07613.28
5.4.70.0060.08013.34
5.4.60.0060.08213.29
5.4.50.0070.06613.11
5.4.40.0010.06513.22
5.4.30.0070.08013.21
5.4.20.0040.08013.16
5.4.10.0020.06513.30
5.4.00.0020.08813.05
5.3.290.0000.07412.50
5.3.280.0100.07912.48
5.3.270.0060.08312.56
5.3.260.0040.06812.54
5.3.250.0060.08412.57
5.3.240.0030.08112.44
5.3.230.0030.07712.43
5.3.220.0030.06712.48
5.3.210.0050.08312.46
5.3.200.0020.08212.52
5.3.190.0030.07612.52
5.3.180.0060.07612.42
5.3.170.0070.08012.47
5.3.160.0040.08512.47
5.3.150.0060.07912.51
5.3.140.0070.08012.41
5.3.130.0040.08212.47
5.3.120.0090.07612.49
5.3.110.0060.07712.44
5.3.100.0020.07312.24
5.3.90.0030.08112.36
5.3.80.0020.08512.29
5.3.70.0010.07912.29
5.3.60.0060.02012.38
5.3.50.0040.03012.28
5.3.40.0040.02812.28
5.3.30.0070.02612.28
5.3.20.0060.02712.26
5.3.10.0080.02612.13
5.3.00.0050.02712.04
5.2.170.0030.06712.19
5.2.160.0000.06712.19
5.2.150.0070.06712.19
5.2.140.0100.06012.19
5.2.130.0070.03712.19
5.2.120.0070.03312.19
5.2.110.0030.06712.19
5.2.100.0000.05712.19
5.2.90.0130.05712.19
5.2.80.0070.06012.19
5.2.70.0130.03712.19
5.2.60.0130.05312.19
5.2.50.0000.03712.19
5.2.40.0000.03712.19
5.2.30.0070.05012.19
5.2.20.0130.02712.19
5.2.10.0000.05012.19
5.2.00.0000.05712.19
5.1.60.0030.04012.19
5.1.50.0070.04012.19
5.1.40.0070.04012.19
5.1.30.0100.04712.19
5.1.20.0100.05012.19
5.1.10.0070.05712.19
5.1.00.0000.06012.19
5.0.50.0070.04012.19
5.0.40.0030.04312.19
5.0.30.0100.06312.19
5.0.20.0070.04012.19
5.0.10.0030.04312.19
5.0.00.0100.05012.19
4.4.90.0000.03312.19
4.4.80.0000.02012.19
4.4.70.0000.02712.19
4.4.60.0000.03312.19
4.4.50.0000.03012.19
4.4.40.0100.04312.19
4.4.30.0030.03312.19
4.4.20.0030.03012.19
4.4.10.0030.03012.19
4.4.00.0000.05012.19
4.3.110.0030.03712.19
4.3.100.0170.02312.19
4.3.90.0070.02712.19
4.3.80.0000.04712.19
4.3.70.0100.02712.19
4.3.60.0030.02712.19
4.3.50.0000.02312.19
4.3.40.0000.03712.19
4.3.30.0000.01712.19
4.3.20.0000.02712.19
4.3.10.0000.03312.19
4.3.00.0030.01712.19

preferences:
38.95 ms | 401 KiB | 5 Q