3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'test'; $salt = 'testtesttesttesttesttesttest'; // pre-calculated hash using PHP 5.4 and the new flag $2y$ $hash = '$2y$10$testtesttesttesttesttetsVhdqssnPoru2WOCEBbSFwYnOf'; if (version_compare(PHP_VERSION, '5.3.7', '<')) { $hash = str_replace('$2y$','$2a$', $hash); echo "Changed the 2y in 2a\n"; } if ($hash === crypt($password, $hash)) { echo "OK!\n"; } else { echo "ERROR\n"; }

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.11716.49
8.3.50.0240.11021.95
8.3.40.0100.10518.84
8.3.30.0100.09819.02
8.3.20.0130.08620.37
8.3.10.0070.06723.48
8.3.00.0100.06419.25
8.2.180.0140.10818.04
8.2.170.0100.10922.96
8.2.160.0170.09720.38
8.2.150.0130.10324.18
8.2.140.0070.05224.66
8.2.130.0070.08426.16
8.2.120.0000.05822.14
8.2.110.0030.05622.24
8.2.100.0100.05817.70
8.2.90.0030.06119.08
8.2.80.0030.06117.97
8.2.70.0100.05517.50
8.2.60.0000.06517.93
8.2.50.0070.05718.07
8.2.40.0060.05818.03
8.2.30.0000.06418.04
8.2.20.0060.06417.59
8.2.10.0000.06518.08
8.2.00.0000.06617.52
8.1.280.0070.10925.92
8.1.270.0070.05323.96
8.1.260.0070.06626.35
8.1.250.0130.07228.09
8.1.240.0070.05323.66
8.1.230.0070.06319.02
8.1.220.0030.06117.74
8.1.210.0000.06618.77
8.1.200.0030.06317.13
8.1.190.0070.05917.41
8.1.180.0070.05918.10
8.1.170.0030.06218.59
8.1.160.0030.06121.94
8.1.150.0030.06018.52
8.1.140.0030.06217.38
8.1.130.0030.06017.76
8.1.120.0060.05717.41
8.1.110.0030.06217.39
8.1.100.0000.06917.25
8.1.90.0000.06417.38
8.1.80.0000.06517.42
8.1.70.0000.06317.25
8.1.60.0030.06217.58
8.1.50.0030.06117.38
8.1.40.0030.06417.33
8.1.30.0030.06317.54
8.1.20.0060.05817.56
8.1.10.0070.05717.35
8.1.00.0030.06017.42
8.0.300.0030.06118.77
8.0.290.0030.06217.18
8.0.280.0040.06018.42
8.0.270.0000.06517.16
8.0.260.0030.06116.80
8.0.250.0000.06316.83
8.0.240.0000.06316.87
8.0.230.0070.05716.84
8.0.220.0070.05716.74
8.0.210.0070.05916.79
8.0.200.0030.06016.75
8.0.190.0030.06216.93
8.0.180.0070.06416.73
8.0.170.0000.06416.86
8.0.160.0030.06016.85
8.0.150.0000.06616.74
8.0.140.0030.06116.82
8.0.130.0030.06013.25
8.0.120.0000.06516.83
8.0.110.0060.05716.72
8.0.100.0030.06116.71
8.0.90.0030.06116.84
8.0.80.0070.09516.82
8.0.70.0000.06416.72
8.0.60.0030.06116.60
8.0.50.0070.05716.64
8.0.30.0120.09316.91
8.0.20.0080.09017.40
8.0.10.0000.06416.74
8.0.00.0130.08516.65
7.4.330.0030.05815.01
7.4.320.0030.06016.52
7.4.300.0000.06416.46
7.4.290.0070.06516.42
7.4.280.0000.06516.57
7.4.270.0000.06416.52
7.4.260.0030.06016.49
7.4.250.0070.05716.56
7.4.240.0030.06016.46
7.4.230.0000.06316.38
7.4.220.0130.10116.54
7.4.210.0030.09516.54
7.4.200.0000.06316.68
7.4.190.0070.05616.40
7.4.160.0090.09816.48
7.4.150.0170.08417.40
7.4.140.0100.08917.86
7.4.130.0080.09016.46
7.4.120.0100.09116.55
7.4.110.0070.09016.43
7.4.100.0120.08916.53
7.4.90.0130.08516.47
7.4.80.0120.08719.39
7.4.70.0030.09716.32
7.4.60.0130.08716.46
7.4.50.0000.07116.46
7.4.40.0130.06622.77
7.4.30.0100.08516.46
7.4.00.0030.07215.01
7.3.330.0030.05813.00
7.3.320.0030.05913.02
7.3.310.0000.06416.14
7.3.300.0000.06316.21
7.3.290.0170.09916.22
7.3.280.0040.10316.17
7.3.270.0100.09417.40
7.3.260.0070.09416.31
7.3.250.0110.09116.26
7.3.240.0130.08916.53
7.3.230.0060.09216.39
7.3.210.0030.09416.47
7.3.200.0100.09619.39
7.3.190.0130.09116.15
7.3.180.0130.08416.57
7.3.170.0100.08816.36
7.3.160.0160.09216.30
7.3.120.0030.07314.83
7.3.10.0050.06716.43
7.3.00.0100.06616.46
7.2.330.0030.09316.49
7.2.320.0070.09516.57
7.2.310.0160.08116.34
7.2.300.0100.08816.52
7.2.290.0030.09816.32
7.2.130.0070.07416.45
7.2.120.0120.06816.68
7.2.110.0100.06916.48
7.2.100.0050.07416.65
7.2.90.0070.07116.53
7.2.80.0050.06916.80
7.2.70.0120.06716.68
7.2.60.0100.06916.87
7.2.50.0080.07016.52
7.2.40.0030.07516.59
7.2.30.0080.07116.76
7.2.20.0100.07116.78
7.2.10.0130.07116.54
7.2.00.0120.06516.67
7.1.250.0080.06715.56
7.1.70.0200.08117.08
7.1.60.0070.13219.33
7.1.50.0160.11916.96
7.1.00.0030.16722.27
7.0.200.0030.06916.83
7.0.140.0030.16022.00
7.0.100.0100.15719.90
7.0.90.0100.14319.98
7.0.80.0100.14019.86
7.0.70.0030.10319.95
7.0.60.0100.15719.92
7.0.50.0170.15720.40
7.0.40.0030.16720.05
7.0.30.0030.13720.11
7.0.20.0070.10320.14
7.0.10.0100.10020.18
7.0.00.0070.17019.93
5.6.280.0000.16721.09
5.6.250.0030.17020.63
5.6.240.0100.15720.63
5.6.230.0170.15020.68
5.6.220.0030.17020.58
5.6.210.0000.17720.66
5.6.200.0070.14020.95
5.6.190.0100.11021.08
5.6.180.0130.16320.95
5.6.170.0100.14321.02
5.6.160.0070.14721.06
5.6.150.0100.16721.08
5.6.140.0170.15320.93
5.6.130.0030.17021.05
5.6.120.0070.15720.93
5.6.110.0070.17021.01
5.6.100.0100.16721.01
5.6.90.0070.16321.14
5.6.80.0000.13720.40
5.6.70.0070.16320.32
5.6.60.0030.17020.47
5.6.50.0100.15020.47
5.6.40.0030.15720.46
5.6.30.0030.14320.45
5.6.20.0200.13320.46
5.6.10.0030.15020.42
5.6.00.0070.16720.44
5.5.380.0030.16020.51
5.5.370.0100.12720.41
5.5.360.0070.15020.43
5.5.350.0100.15320.46
5.5.340.0030.11720.64
5.5.330.0070.16720.73
5.5.320.0170.10320.91
5.5.310.0030.10720.91
5.5.300.0100.15020.86
5.5.290.0030.15720.80
5.5.280.0070.15720.79
5.5.270.0070.13720.76
5.5.260.0070.17720.63
5.5.250.0030.16020.66
5.5.240.0100.14320.16
5.5.230.0130.16720.29
5.5.220.0100.16020.20
5.5.210.0070.16020.17
5.5.200.0070.16320.11
5.5.190.0130.16320.25
5.5.180.0300.14020.24
5.5.160.0100.13720.23
5.5.150.0030.17320.14
5.5.140.0130.15319.98
5.5.130.0030.17020.08
5.5.120.0200.13320.22
5.5.110.0100.16320.19
5.5.100.0070.15720.16
5.5.90.0070.10720.15
5.5.80.0070.15020.06
5.5.70.0100.13719.96
5.5.60.0100.16020.05
5.5.50.0100.15719.93
5.5.40.0070.16720.02
5.5.30.0130.13319.92
5.5.20.0070.17320.05
5.5.10.0100.16320.05
5.5.00.0100.14320.03
5.4.450.0100.16019.39
5.4.440.0170.10319.40
5.4.430.0100.16019.38
5.4.420.0070.15319.30
5.4.410.0070.14319.10
5.4.400.0070.11719.04
5.4.390.0070.10719.14
5.4.380.0130.14019.14
5.4.370.0130.14719.14
5.4.360.0070.10718.96
5.4.350.0100.13318.95
5.4.340.0070.14319.03
5.4.320.0000.14318.90
5.4.310.0170.12319.08
5.4.300.0170.14319.04
5.4.290.0130.14018.93
5.4.280.0100.15319.04
5.4.270.0130.14019.11
5.4.260.0030.12718.90
5.4.250.0030.10319.07
5.4.240.0070.17019.04
5.4.230.0130.15018.89
5.4.220.0030.16019.02
5.4.210.0200.15319.14
5.4.200.0070.14719.11
5.4.190.0000.15718.89
5.4.180.0100.14319.14
5.4.170.0100.13018.80
5.4.160.0100.15719.09
5.4.150.0030.15319.02
5.4.140.0130.15016.23
5.4.130.0030.16716.22
5.4.120.0030.13016.27
5.4.110.0070.14316.43
5.4.100.0030.16316.21
5.4.90.0130.15316.45
5.4.80.0030.16316.30
5.4.70.0100.14716.20
5.4.60.0030.15016.38
5.4.50.0130.13716.32
5.4.40.0100.15016.37
5.4.30.0200.14316.30
5.4.20.0170.14016.28
5.4.10.0070.16016.19
5.4.00.0030.16015.76
5.3.290.0070.14714.63
5.3.280.0030.15014.59
5.3.270.0100.11714.60
5.3.260.0070.13014.60
5.3.250.0070.16714.54
5.3.240.0070.15014.59
5.3.230.0030.14714.41
5.3.220.0030.13714.41
5.3.210.0030.13014.50
5.3.200.0100.14314.57
5.3.190.0070.15014.39
5.3.180.0170.13314.56
5.3.170.0100.16714.56
5.3.160.0070.16014.55
5.3.150.0070.15014.42
5.3.140.0030.13314.54
5.3.130.0130.14014.51
5.3.120.0030.15714.53
5.3.110.0070.14714.51
5.3.100.0100.14314.03
5.3.90.0130.16314.01
5.3.80.0030.16314.00
5.3.70.0100.14013.98
5.3.60.0000.11713.96
5.3.50.0070.16013.94
5.3.40.0130.13013.94
5.3.30.0100.15713.90
5.3.20.0070.16013.65
5.3.10.0130.15013.66
5.3.00.0170.15013.64
5.2.170.0070.06311.02
5.2.160.0030.06311.07
5.2.150.0070.06311.08
5.2.140.0030.06710.99
5.2.130.0070.03011.01
5.2.120.0030.06011.08
5.2.110.0100.05711.01
5.2.100.0070.02711.03
5.2.90.0070.05710.91
5.2.80.0030.06711.10
5.2.70.0100.05311.03
5.2.60.0030.06010.98
5.2.50.0070.05710.86
5.2.40.0100.03310.85
5.2.30.0100.05310.86
5.2.20.0000.03710.82
5.2.10.0100.03710.88
5.2.00.0030.06010.77
5.1.60.0000.05010.15
5.1.50.0130.05010.15
5.1.40.0100.04310.15
5.1.30.0030.06010.23
5.1.20.0000.05310.26
5.1.10.0100.04710.15
5.1.00.0030.05010.15
5.0.50.0130.03710.15
5.0.40.0030.04310.15
5.0.30.0100.05710.15
5.0.20.0100.04010.15
5.0.10.0070.03310.15
5.0.00.0100.06010.15
4.4.90.0070.03010.15
4.4.80.0000.03710.15
4.4.70.0000.03310.15
4.4.60.0030.03310.15
4.4.50.0030.03310.15
4.4.40.0000.05310.15
4.4.30.0030.03710.15
4.4.20.0000.04010.15
4.4.10.0100.03010.15
4.4.00.0000.05310.15
4.3.110.0030.03310.15
4.3.100.0000.03710.15
4.3.90.0000.03310.15
4.3.80.0030.03310.15
4.3.70.0030.02010.15
4.3.60.0030.03010.15
4.3.50.0000.03710.15
4.3.40.0030.05010.15
4.3.30.0030.03310.15
4.3.20.0100.02710.15
4.3.10.0000.03710.15
4.3.00.0000.03010.15

preferences:
47.3 ms | 401 KiB | 5 Q