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$testtesttesttesttesttetsVhdqssnPoru2WOCEBbSFwYnOfjwmG'; $result = crypt($password, $hash); printf("Length hash verify: %d\n", strlen($result)); printf("Length hash: $d\n", strlen($hash)); if ($hash === $result) { 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.70.0100.10016.50
8.3.60.0070.10116.63
8.3.50.0130.11321.85
8.3.40.0000.11118.76
8.3.30.0100.09819.02
8.3.20.0070.07720.33
8.3.10.0000.05823.54
8.3.00.0030.05420.64
8.2.180.0130.11718.31
8.2.170.0100.11022.96
8.2.160.0000.10722.08
8.2.150.0000.05824.18
8.2.140.0060.05224.66
8.2.130.0030.05426.16
8.2.120.0100.04820.54
8.2.110.0070.05222.25
8.2.100.0100.06317.72
8.2.90.0070.05919.09
8.2.80.0030.06317.97
8.2.70.0070.06017.50
8.2.60.0000.06418.04
8.2.50.0060.05818.07
8.2.40.0030.06618.09
8.2.30.0070.05718.10
8.2.20.0030.06117.72
8.2.10.0000.06417.68
8.2.00.0000.06417.67
8.1.280.0100.09825.92
8.1.270.0040.05723.94
8.1.260.0070.05226.35
8.1.250.0000.05828.09
8.1.240.0070.05323.87
8.1.230.0100.05819.12
8.1.220.0070.05717.76
8.1.210.0030.06218.77
8.1.200.0070.05917.22
8.1.190.0000.06417.28
8.1.180.0070.05818.10
8.1.170.0030.06218.39
8.1.160.0000.06421.82
8.1.150.0000.06418.62
8.1.140.0000.06417.38
8.1.130.0030.06017.73
8.1.120.0030.06617.42
8.1.110.0100.05617.26
8.1.100.0000.06417.25
8.1.90.0000.06417.37
8.1.80.0030.06017.42
8.1.70.0060.05817.25
8.1.60.0000.06517.52
8.1.50.0000.06517.45
8.1.40.0000.06417.45
8.1.30.0030.06117.54
8.1.20.0030.06117.61
8.1.10.0030.06717.48
8.1.00.0000.06517.33
8.0.300.0070.05718.77
8.0.290.0060.05817.16
8.0.280.0030.06118.49
8.0.270.0060.05917.16
8.0.260.0000.06316.98
8.0.250.0000.06416.88
8.0.240.0100.05416.92
8.0.230.0000.06316.88
8.0.220.0030.06116.93
8.0.210.0000.06316.86
8.0.200.0070.06017.00
8.0.190.0030.06316.91
8.0.180.0030.06116.86
8.0.170.0030.06216.89
8.0.160.0000.06517.03
8.0.150.0000.06416.85
8.0.140.0030.06116.88
8.0.130.0000.06213.37
8.0.120.0060.05816.95
8.0.110.0100.05416.97
8.0.100.0060.05916.92
8.0.90.0000.06416.78
8.0.80.0130.08816.95
8.0.70.0000.06616.82
8.0.60.0030.06016.82
8.0.50.0100.05417.01
8.0.30.0100.09117.04
8.0.20.0080.09017.40
8.0.10.0030.06117.07
8.0.00.0100.09316.63
7.4.330.0030.05815.02
7.4.320.0030.06016.60
7.4.300.0000.06416.64
7.4.290.0000.06416.48
7.4.280.0030.06116.55
7.4.270.0000.06316.62
7.4.260.0000.06316.59
7.4.250.0000.06416.39
7.4.240.0030.06116.48
7.4.230.0030.06016.47
7.4.220.0070.10516.46
7.4.210.0090.09216.55
7.4.200.0030.06016.39
7.4.190.0000.06416.74
7.4.160.0100.09016.46
7.4.150.0130.09117.40
7.4.140.0070.09217.86
7.4.130.0130.08816.56
7.4.120.0130.08416.58
7.4.110.0060.09016.61
7.4.100.0060.10316.69
7.4.90.0070.09616.34
7.4.80.0170.08616.69
7.4.70.0030.09316.50
7.4.60.0160.08116.48
7.4.50.0100.06516.39
7.4.40.0030.07322.77
7.4.30.0130.08216.43
7.4.00.0070.07014.81
7.3.330.0000.06113.12
7.3.320.0000.06213.09
7.3.310.0000.06616.29
7.3.300.0030.06016.28
7.3.290.0100.10616.30
7.3.280.0080.10016.26
7.3.270.0100.09117.40
7.3.260.0030.09316.52
7.3.250.0030.09316.28
7.3.240.0160.09516.37
7.3.230.0100.08516.39
7.3.210.0160.08716.49
7.3.200.0070.09219.39
7.3.190.0100.08716.44
7.3.180.0160.08016.38
7.3.170.0100.08816.27
7.3.160.0100.08616.20
7.3.120.0100.06714.74
7.3.10.0070.06616.77
7.3.00.0070.06816.54
7.2.330.0060.10016.56
7.2.320.0260.08016.72
7.2.310.0130.08316.67
7.2.300.0090.08816.55
7.2.290.0030.09516.36
7.2.130.0100.06916.83
7.2.120.0000.07616.96
7.2.110.0070.06916.97
7.2.100.0070.07316.75
7.2.90.0070.06716.56
7.2.80.0070.06717.00
7.2.70.0070.07216.76
7.2.60.0050.07016.82
7.2.50.0060.06817.01
7.2.40.0100.06316.88
7.2.30.0070.06416.62
7.2.20.0070.07016.71
7.2.10.0030.07216.96
7.2.00.0050.06818.17
7.1.250.0030.06915.65
7.1.200.0070.06715.73
7.1.100.0070.07018.09
7.1.70.0030.06516.92
7.1.60.0030.13419.27
7.1.50.0030.13217.00
7.1.00.0030.16722.37
7.0.200.0100.06416.58
7.0.140.0030.15722.04
7.0.60.0170.13720.03
7.0.50.0030.10317.86
7.0.40.0130.10720.13
7.0.30.0200.14320.18
7.0.20.0370.15020.16
7.0.10.0070.15720.09
7.0.00.0130.14320.18
5.6.280.0000.16021.13
5.6.210.0170.15720.46
5.6.200.0030.16318.19
5.6.190.0000.11020.57
5.6.180.0470.10720.49
5.6.170.0200.11020.38
5.6.160.0130.16320.41
5.6.150.0100.11718.12
5.6.140.0030.11018.20
5.6.130.0030.10318.16
5.6.120.0100.16721.12
5.6.110.0100.17020.88
5.6.100.0130.11020.98
5.6.90.0070.17020.94
5.6.80.0030.16020.37
5.5.350.0070.13320.41
5.5.340.0000.11717.99
5.5.330.0070.14720.26
5.5.320.0270.11720.32
5.5.310.0370.10720.30
5.5.300.0100.13717.92
5.5.290.0030.11717.89
5.5.280.0030.13720.98
5.5.270.0100.15320.88
5.5.260.0130.16320.76
5.5.250.0030.14020.61
5.5.240.0370.13720.28
5.4.450.0230.16319.10
5.4.440.0230.14019.57
5.4.430.0330.14019.27
5.4.420.0230.10319.21
5.4.410.0230.12719.41
5.4.400.0330.11019.28
5.4.390.0270.09319.09
5.4.380.0230.14719.23
5.4.370.0170.10319.23
5.4.360.0270.15019.13
5.4.350.0370.15319.21
5.4.340.0230.10319.11
5.4.320.0300.14719.25
5.4.310.0230.10719.25
5.4.300.0270.11319.13
5.4.290.0230.10019.05
5.4.280.0300.11319.23
5.4.270.0330.11319.20
5.4.260.0470.14319.23
5.4.250.0270.15319.16
5.4.240.0230.10019.07
5.4.230.0230.12318.77
5.4.220.0270.11719.04
5.4.210.0170.11018.91
5.4.200.0200.10018.91
5.4.190.0370.14718.78
5.4.180.0370.14018.92
5.4.170.0300.15019.09
5.4.160.0370.12319.09
5.4.150.0200.10319.11
5.4.140.0230.13316.50
5.4.130.0370.12316.46
5.4.120.0200.10016.28
5.4.110.0300.15716.45
5.4.100.0300.15016.41
5.4.90.0370.14316.39
5.4.80.0430.13716.38
5.4.70.0300.15716.29
5.4.60.0230.11316.36
5.4.50.0230.10016.40
5.4.40.0300.13016.49
5.4.30.0270.14716.43
5.4.20.0200.10016.18
5.4.10.0230.14316.23
5.4.00.0270.14715.64
5.3.290.0330.10014.54
5.3.280.0300.10714.44
5.3.270.0330.13714.44
5.3.260.0370.13314.45
5.3.250.0330.13014.46
5.3.240.0330.14014.48
5.3.230.0330.11014.55
5.3.220.0230.14014.47
5.3.210.0270.10014.44
5.3.200.0170.11014.52
5.3.190.0270.09014.43
5.3.180.0200.09714.55
5.3.170.0300.14714.40
5.3.160.0270.14714.46
5.3.150.0270.14714.52
5.3.140.0230.11314.41
5.3.130.0200.11014.38
5.3.120.0200.10714.40
5.3.110.0330.10314.48
5.3.100.0230.10714.08
5.3.90.0270.11713.86
5.3.80.0200.10313.90
5.3.70.0230.10713.81
5.3.60.0230.04013.86
5.3.50.0270.07014.04
5.3.40.0300.05313.94
5.3.30.0300.03713.82
5.3.20.0300.06313.74
5.3.10.0270.07313.57
5.3.00.0230.04013.65
5.2.170.0200.05312.03
5.2.160.0200.03012.03
5.2.150.0230.03312.03
5.2.140.0170.03012.03
5.2.130.0200.03712.03
5.2.120.0200.02712.03
5.2.110.0270.04312.03
5.2.100.0270.02312.03
5.2.90.0170.03012.03
5.2.80.0200.03712.03
5.2.70.0200.04012.03
5.2.60.0230.02712.03
5.2.50.0200.04312.03
5.2.40.0200.02312.03
5.2.30.0130.03712.03
5.2.20.0170.04312.03
5.2.10.0200.05312.03
5.2.00.0270.05012.03
5.1.60.0270.02712.03
5.1.50.0270.04712.03
5.1.40.0230.04712.03
5.1.30.0230.02012.03
5.1.20.0200.03312.03
5.1.10.0170.02312.03
5.1.00.0130.02712.03
5.0.50.0100.03312.03
5.0.40.0100.02012.03
5.0.30.0100.03712.03
5.0.20.0200.02312.03
5.0.10.0070.03712.03
5.0.00.0070.07012.03
4.4.90.0170.03012.03
4.4.80.0070.01712.03
4.4.70.0130.01312.03
4.4.60.0130.03312.03
4.4.50.0170.02312.03
4.4.40.0130.05312.03
4.4.30.0130.01712.03
4.4.20.0100.02012.03
4.4.10.0100.02012.03
4.4.00.0100.02312.03
4.3.110.0130.03012.03
4.3.100.0100.02712.03
4.3.90.0130.02012.03
4.3.80.0100.03012.03
4.3.70.0070.01712.03
4.3.60.0100.01712.03
4.3.50.0070.03312.03
4.3.40.0070.05012.03
4.3.30.0030.03012.03
4.3.20.0070.01712.03
4.3.10.0070.02012.03
4.3.00.0070.03712.03

preferences:
61.93 ms | 401 KiB | 5 Q