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) { echo decbin(chr(crypt($password, '$2y$07$usesomesillystringforsalt$')[28])), PHP_EOL; } 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.70.0100.03016.75
8.3.60.0100.03618.43
8.3.50.0160.03921.07
8.3.40.0170.04018.94
8.3.30.0130.02619.25
8.3.20.0030.01720.25
8.3.10.0070.01421.95
8.3.00.0090.01222.30
8.2.180.0000.03916.88
8.2.170.0170.03422.96
8.2.160.0130.02619.13
8.2.150.0030.01724.18
8.2.140.0030.01724.66
8.2.130.0090.01226.16
8.2.120.0030.01819.36
8.2.110.0030.02020.74
8.2.100.0030.02318.08
8.2.90.0000.02219.14
8.2.80.0030.01917.97
8.2.70.0030.02017.75
8.2.60.0040.01917.92
8.2.50.0000.02218.10
8.2.40.0060.01620.33
8.2.30.0000.02219.29
8.2.20.0000.02217.67
8.2.10.0030.01917.69
8.2.00.0030.01917.64
8.1.280.0160.03225.92
8.1.270.0030.01922.06
8.1.260.0060.01526.35
8.1.250.0030.01828.09
8.1.240.0070.01621.16
8.1.230.0070.02020.31
8.1.220.0060.01617.74
8.1.210.0030.01918.77
8.1.200.0000.02417.35
8.1.190.0040.02117.35
8.1.180.0060.01618.10
8.1.170.0040.02118.54
8.1.160.0030.01818.82
8.1.150.0040.01919.96
8.1.140.0100.01317.30
8.1.130.0040.01817.85
8.1.120.0000.02217.40
8.1.110.0030.02317.34
8.1.100.0000.02117.43
8.1.90.0030.01917.26
8.1.80.0060.01617.38
8.1.70.0030.01917.38
8.1.60.0030.02117.51
8.1.50.0000.02217.53
8.1.40.0000.02217.40
8.1.30.0040.01817.64
8.1.20.0030.02017.63
8.1.10.0000.02317.44
8.1.00.0100.01317.52
8.0.300.0000.02218.77
8.0.290.0060.01616.63
8.0.280.0030.01818.26
8.0.270.0040.01817.24
8.0.260.0070.01416.86
8.0.250.0000.02116.96
8.0.240.0040.01816.91
8.0.230.0030.01916.88
8.0.220.0000.02216.89
8.0.210.0040.01816.88
8.0.200.0040.01916.88
8.0.190.0000.02316.96
8.0.180.0000.02316.90
8.0.170.0030.01916.81
8.0.160.0040.01916.71
8.0.150.0000.02216.86
8.0.140.0030.01916.88
8.0.130.0030.01713.33
8.0.120.0080.01516.91
8.0.110.0000.02216.95
8.0.100.0040.01916.88
8.0.90.0030.01916.68
8.0.80.0030.03416.85
8.0.70.0000.02416.72
8.0.60.0030.01916.72
8.0.50.0060.01616.67
8.0.30.0130.02817.07
8.0.20.0130.02817.40
8.0.10.0040.01816.97
8.0.00.0140.02716.61
7.4.330.0030.04715.00
7.4.320.0000.05116.50
7.4.300.0030.04616.49
7.4.290.0030.04716.61
7.4.280.0030.04816.40
7.4.270.0000.05216.61
7.4.260.0070.04416.57
7.4.250.0130.03916.57
7.4.240.0020.05016.64
7.4.230.0030.04716.65
7.4.220.0130.07916.63
7.4.210.0100.07316.59
7.4.200.0060.04516.60
7.4.190.0030.04716.76
7.4.160.0070.07616.38
7.4.150.0130.06817.40
7.4.140.0140.07317.86
7.4.130.0150.06916.56
7.4.120.0070.07416.51
7.4.110.0030.07516.54
7.4.100.0100.07316.71
7.4.90.0130.06816.45
7.4.80.0130.06719.39
7.4.70.0190.06116.44
7.4.60.0210.06916.36
7.4.50.0000.06016.57
7.4.40.0070.05622.77
7.4.30.0090.06916.57
7.4.00.0030.06015.02
7.3.330.0070.04413.35
7.3.320.0060.04213.36
7.3.310.0030.04716.32
7.3.300.0070.04416.18
7.3.290.0100.07216.29
7.3.280.0070.07616.30
7.3.270.0280.08917.40
7.3.260.0130.06916.69
7.3.250.0110.07316.53
7.3.240.0190.06516.52
7.3.230.0230.06316.39
7.3.210.0070.07716.48
7.3.200.0190.06519.39
7.3.190.0160.07016.39
7.3.180.0160.07216.21
7.3.170.0130.07616.45
7.3.160.0070.07216.43
7.3.120.0070.05414.50
7.3.110.0130.05014.94
7.3.100.0070.05314.93
7.3.90.0070.05414.55
7.3.80.0000.05914.69
7.3.70.0000.06414.77
7.3.60.0070.05214.81
7.3.50.0100.05014.48
7.3.40.0100.05214.89
7.3.30.0070.05214.47
7.3.20.0100.04816.62
7.3.10.0060.05216.50
7.3.00.0130.04816.59
7.2.330.0130.07016.46
7.2.320.0120.07516.61
7.2.310.0160.06316.59
7.2.300.0070.07416.88
7.2.290.0030.07616.33
7.2.240.0030.05814.93
7.2.230.0030.05814.91
7.2.220.0070.05815.05
7.2.210.0100.05515.29
7.2.200.0100.05415.04
7.2.190.0100.05314.91
7.2.180.0030.05815.04
7.2.170.0030.05814.98
7.2.160.0130.05015.05
7.2.150.0000.06417.04
7.2.140.0070.05416.79
7.2.130.0070.05716.83
7.2.120.0000.05816.75
7.2.110.0030.05416.79
7.2.100.0030.05916.88
7.2.90.0000.06116.92
7.2.80.0100.05116.79
7.2.70.0070.05216.68
7.2.60.0080.05416.92
7.2.50.0060.05116.78
7.2.40.0070.05617.07
7.2.30.0030.05816.85
7.2.20.0030.05316.92
7.2.10.0030.06016.99
7.2.00.0070.05518.08
7.1.330.0070.05615.88
7.1.320.0100.05315.63
7.1.310.0030.06115.92
7.1.300.0070.05715.86
7.1.290.0000.05615.79
7.1.280.0030.05915.75
7.1.270.0070.05415.61
7.1.260.0070.05615.75
7.1.250.0070.05415.61
7.1.200.0030.05815.57
7.1.100.0100.05118.30
7.1.70.0060.04817.20
7.1.60.0100.10219.82
7.1.50.0030.10216.70
7.1.00.0000.15022.36
7.0.200.0070.08016.75
7.0.140.0030.14021.92
7.0.60.0030.08719.94
7.0.50.0130.13317.79
7.0.40.0130.13020.39
7.0.30.0270.08720.16
7.0.20.0400.10320.14
7.0.10.0070.15020.05
7.0.00.0030.09720.08
5.6.280.0100.13721.10
5.6.210.0130.14320.57
5.6.200.0030.14018.20
5.6.190.0100.08720.61
5.6.180.0430.13020.61
5.6.170.0500.09020.56
5.6.160.0100.12320.47
5.6.150.0030.09018.27
5.6.140.0130.12318.18
5.6.130.0100.09718.12
5.6.120.0000.09020.99
5.6.110.0100.08020.98
5.6.100.0130.14720.98
5.6.90.0200.11720.85
5.6.80.0030.15020.39
5.5.350.0200.13320.45
5.5.340.0130.13318.07
5.5.330.0100.12720.35
5.5.320.3470.08320.31
5.5.310.0200.09720.36
5.5.300.0170.14018.04
5.5.290.0070.08317.97
5.5.280.0030.09720.89
5.5.270.0030.09020.66
5.5.260.0030.09720.64
5.5.250.0100.08020.63
5.5.240.0030.13720.24
5.4.450.0530.12319.20
5.4.440.0130.13019.61
5.4.430.0200.11319.60
5.4.420.0230.12319.55
5.4.410.0100.12019.01
5.4.400.0400.11718.75
5.4.390.0300.11318.52
5.4.380.0230.12318.62
5.4.370.0170.11318.46
5.4.360.0130.12318.75
5.4.350.0230.10718.75
5.4.340.0100.12018.72
5.4.320.0060.08212.51
5.4.310.0070.08512.50
5.4.300.0050.08712.50
5.4.290.0050.08712.50
5.4.280.0110.08312.39
5.4.270.0100.08012.40
5.4.260.0070.12718.84
5.4.250.0130.11718.83
5.4.240.0130.13018.73
5.4.230.0170.12718.92
5.4.220.0100.12018.89
5.4.210.0230.10718.93
5.4.200.0130.11718.73
5.4.190.0100.12018.61
5.4.180.0130.15018.71
5.4.170.0100.14018.79
5.4.160.0100.12019.04
5.4.150.0030.13318.96
5.4.140.0070.11716.34
5.4.130.0100.12016.34
5.4.120.0070.12716.39
5.4.110.0130.11316.47
5.4.100.0170.11016.45
5.4.90.0170.11316.43
5.4.80.0070.12316.44
5.4.70.0100.12016.33
5.4.60.0030.14016.49
5.4.50.0070.11716.31
5.4.40.0130.13716.41
5.4.30.0200.11316.55
5.4.20.0200.10316.26
5.4.10.0170.12016.55
5.4.00.0130.13715.98
5.3.290.0090.03712.80
5.3.280.0000.07314.68
5.3.270.0100.05314.69
5.3.260.0030.06014.59
5.3.250.0230.06314.58
5.3.240.0200.05314.63
5.3.230.0200.04014.75
5.3.220.0100.05014.55
5.3.210.0100.05014.59
5.3.200.0100.07314.66
5.3.190.0100.05014.57
5.3.180.0070.05014.56
5.3.170.0070.05314.65
5.3.160.0030.05314.65
5.3.150.0030.08014.39
5.3.140.0070.05314.57
5.3.130.0100.07014.52
5.3.120.0130.06314.55
5.3.110.0130.04714.65
5.3.100.0100.06714.00
5.3.90.0130.05314.27
5.3.80.0130.04313.85
5.3.70.0000.06714.02
5.3.60.0030.06714.22
5.3.50.0130.06314.04
5.3.40.0070.04714.04
5.3.30.0030.07313.80
5.3.20.0100.05013.70
5.3.10.0070.04713.72
5.3.00.0130.05013.81
5.2.170.0070.05711.05
5.2.160.0000.04711.00
5.2.150.0130.05011.31
5.2.140.0170.03711.23
5.2.130.0170.03311.06
5.2.120.0030.04011.06
5.2.110.0070.04311.32
5.2.100.0100.04711.05
5.2.90.0030.05011.09
5.2.80.0000.04711.16
5.2.70.0030.06710.91
5.2.60.0070.05711.04
5.2.50.0000.06311.00
5.2.40.0100.03710.90
5.2.30.0100.03710.97
5.2.20.0070.03710.96
5.2.10.0030.05010.94
5.2.00.0170.04710.90
5.1.60.0100.0339.92
5.1.50.0070.0409.92
5.1.40.0070.0479.95
5.1.30.0030.04010.16
5.1.20.0100.04310.26
5.1.10.0100.02710.31
5.1.00.0030.03710.14
5.0.50.0100.0238.51
5.0.40.0070.0238.41
5.0.30.0030.0608.23
5.0.20.0030.0278.25
5.0.10.0070.0338.23
5.0.00.0000.0438.23
4.4.90.0030.0307.38
4.4.80.0000.0277.38
4.4.70.0000.0337.38
4.4.60.0070.0277.38
4.4.50.0100.0237.38
4.4.40.0030.0437.38
4.4.30.0030.0237.38
4.4.20.0070.0237.38
4.4.10.0000.0277.38
4.4.00.0030.0407.38
4.3.110.0070.0207.38
4.3.100.0030.0207.38
4.3.90.0100.0137.38
4.3.80.0000.0407.38
4.3.70.0000.0237.38
4.3.60.0000.0237.38
4.3.50.0070.0177.38
4.3.40.0100.0407.38
4.3.30.0000.0337.38
4.3.20.0130.0207.38
4.3.10.0000.0237.38
4.3.00.0130.0206.89

preferences:
56.27 ms | 401 KiB | 5 Q