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); $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.0070.08718.30
8.3.50.0100.07021.14
8.3.40.0100.06518.73
8.3.30.0130.07918.95
8.3.20.0100.06720.24
8.3.10.0030.06822.05
8.3.00.0100.08420.60
8.2.180.0100.08716.50
8.2.170.0130.06222.96
8.2.160.0130.05919.08
8.2.150.0070.07224.18
8.2.140.0130.06624.66
8.2.130.0100.06426.16
8.2.120.0100.02919.38
8.2.110.0070.03322.05
8.2.100.0030.04319.64
8.2.90.0070.03619.23
8.2.80.0030.03917.97
8.2.70.0040.03917.50
8.2.60.0060.03517.93
8.2.50.0100.03318.07
8.2.40.0070.03918.21
8.2.30.0070.03418.12
8.2.20.0000.04117.72
8.2.10.0070.03617.75
8.2.00.0030.04017.82
8.1.280.0160.07625.92
8.1.270.0100.05322.14
8.1.260.0070.05926.35
8.1.250.0100.05528.09
8.1.240.0030.03723.71
8.1.230.0070.03819.02
8.1.220.0060.03517.74
8.1.210.0030.03818.77
8.1.200.0100.03317.38
8.1.190.0070.03617.43
8.1.180.0030.03818.70
8.1.170.0000.04818.51
8.1.160.0070.03422.12
8.1.150.0000.04118.56
8.1.140.0070.03617.45
8.1.130.0090.03117.82
8.1.120.0030.03817.53
8.1.110.0040.04217.38
8.1.100.0030.03817.42
8.1.90.0000.04117.41
8.1.80.0000.04117.37
8.1.70.0000.04217.36
8.1.60.0030.04017.54
8.1.50.0030.03817.41
8.1.40.0030.03917.48
8.1.30.0080.03417.55
8.1.20.0030.04017.55
8.1.10.0000.04217.41
8.1.00.0040.03917.49
8.0.300.0030.03718.77
8.0.290.0000.04117.05
8.0.280.0000.04118.38
8.0.270.0000.04317.17
8.0.260.0030.03716.75
8.0.250.0030.03816.82
8.0.240.0030.03816.96
8.0.230.0000.04116.86
8.0.220.0070.03516.90
8.0.210.0070.03616.89
8.0.200.0040.03916.89
8.0.190.0070.03416.96
8.0.180.0000.04216.88
8.0.170.0000.04216.94
8.0.160.0030.03816.75
8.0.150.0040.03916.80
8.0.140.0070.03716.75
8.0.130.0000.04013.29
8.0.120.0030.04116.84
8.0.110.0000.04116.71
8.0.100.0100.03516.91
8.0.90.0070.03416.79
8.0.80.0160.05216.84
8.0.70.0030.03916.77
8.0.60.0030.03716.69
8.0.50.0000.04216.72
8.0.30.0160.05516.99
8.0.20.0110.06017.40
8.0.10.0000.04317.00
8.0.00.0190.05116.66
7.4.330.0040.03615.00
7.4.320.0000.04016.52
7.4.300.0030.03716.49
7.4.290.0030.03816.52
7.4.280.0070.03416.57
7.4.270.0030.04116.61
7.4.260.0070.03916.51
7.4.250.0000.04216.45
7.4.240.0020.04016.56
7.4.230.0000.04116.67
7.4.220.0070.07216.55
7.4.210.0080.06216.54
7.4.200.0000.04216.63
7.4.190.0030.03816.77
7.4.160.0110.06116.66
7.4.150.0200.05317.40
7.4.140.0100.05817.86
7.4.130.0180.05316.49
7.4.120.0170.05216.58
7.4.110.0170.04916.48
7.4.100.0130.05916.75
7.4.90.0130.05716.54
7.4.80.0190.05019.39
7.4.70.0100.05716.27
7.4.60.0060.07516.38
7.4.50.0060.02516.61
7.4.40.0030.04822.77
7.4.30.0100.05716.54
7.3.330.0000.03913.30
7.3.320.0030.03713.30
7.3.310.0000.04016.32
7.3.300.0000.04116.31
7.3.290.0060.06116.38
7.3.280.0080.06116.31
7.3.270.0100.06217.40
7.3.260.0190.05416.55
7.3.250.0180.05316.41
7.3.240.0070.06416.54
7.3.230.0100.05916.39
7.3.210.0130.05316.68
7.3.200.0100.06016.50
7.3.190.0070.06016.59
7.3.180.0190.04616.27
7.3.170.0110.05616.34
7.3.160.0060.06116.55
7.2.330.0090.00916.14
7.2.320.0140.00316.30
7.2.310.0110.00716.16
7.2.300.0100.00616.47
7.2.290.0170.00316.35
5.4.260.0130.06318.90
5.4.250.0100.05718.76
5.4.240.0030.06018.94
5.4.230.0070.06018.94
5.4.220.0130.07718.98
5.4.210.0130.05018.84
5.4.200.0100.07318.89
5.4.190.0130.07318.89
5.4.180.0230.05718.98
5.4.170.0130.05319.02
5.4.160.0070.06319.00
5.4.150.0130.05318.73
5.4.140.0100.05316.54
5.4.130.0100.05716.36
5.4.120.0100.06316.38
5.4.110.0030.06316.43
5.4.100.0070.05016.40
5.4.90.0070.05016.57
5.4.80.0070.04716.41
5.4.70.0100.04716.60
5.4.60.0100.04716.46
5.4.50.0070.04716.59
5.4.40.0070.05716.50
5.4.30.0100.05016.46
5.4.20.0170.05316.29
5.4.10.0100.07016.47
5.4.00.0100.06715.84
5.3.280.0130.06314.59
5.3.270.0100.07014.74
5.3.260.0100.05314.70
5.3.250.0170.05314.69
5.3.240.0070.07014.59
5.3.230.0070.07714.66
5.3.220.0100.05014.55
5.3.210.0270.05714.55
5.3.200.0000.06014.73
5.3.190.0100.05014.57
5.3.180.0030.05314.64
5.3.170.0130.07314.64
5.3.160.0100.05014.56
5.3.150.0130.06014.46
5.3.140.0170.04014.46
5.3.130.0170.04714.53
5.3.120.0100.05314.45
5.3.110.0030.08014.54
5.3.100.0070.06014.12
5.3.90.0100.05014.18
5.3.80.0130.04014.11
5.3.70.0170.04313.93
5.3.60.0070.05313.98
5.3.50.0170.05713.96
5.3.40.0070.06014.03
5.3.30.0130.04314.10
5.3.20.0130.04013.79
5.3.10.0070.04713.55
5.3.00.0030.05013.72

preferences:
41.03 ms | 400 KiB | 5 Q