3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = "test"; echo "$password \n"; $hashToStoreInDb = password_hash($password, PASSWORD_DEFAULT); echo " $hashToStoreInDb \n"; $isPasswordCorrect = password_verify($password, $hashToStoreInDb); echo "$isPasswordCorrect \n"; #$password = "test33"; $hashToStoreInDb = "\$2y\$10\$JCqObEKNF9A21jyhI9.fIObxjiGUMPper3criJstIRZ8oZ2u0si25"; $hash_crypt = crypt($password, $hashToStoreInDb); echo " $hash_crypt \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)
7.4.10.0100.19214.94
7.4.00.0030.20614.70
7.3.130.0160.19114.73
7.3.120.0070.20415.03
7.3.110.0070.20614.66
7.3.100.0030.19914.65
7.3.90.0100.19014.37
7.3.80.0070.19214.73
7.3.70.0100.18914.66
7.3.60.0000.19714.43
7.3.50.0030.19514.89
7.3.40.0070.18114.63
7.3.30.0100.18214.80
7.3.20.0070.19316.45
7.3.10.0070.18116.57
7.3.00.0100.18916.80
7.2.260.0030.20815.02
7.2.250.0090.20215.10
7.2.240.0030.19714.87
7.2.230.0100.19215.08
7.2.220.0030.21415.05
7.2.210.0070.18215.00
7.2.200.0070.19215.15
7.2.190.0100.18715.03
7.2.180.0000.19515.01
7.2.170.0030.19714.93
7.2.160.0000.20415.10
7.2.150.0030.19616.84
7.2.140.0000.20116.96
7.2.130.0030.20017.07
7.2.120.0030.20016.88
7.2.110.0000.19016.79
7.2.100.0000.20116.86
7.2.90.0070.18317.08
7.2.80.0030.18416.93
7.2.70.0030.18716.68
7.2.60.0050.18516.85
7.2.50.0000.19016.80
7.2.40.0030.18416.79
7.2.30.0030.19916.82
7.2.20.0060.18716.67
7.2.10.0070.18116.87
7.2.00.0070.19118.05
7.1.330.0070.19615.70
7.1.320.0030.20515.82
7.1.310.0000.19315.73
7.1.300.0030.19115.52
7.1.290.0000.19215.98
7.1.280.0030.19215.80
7.1.270.0000.20215.66
7.1.260.0000.19115.99
7.1.250.0030.18615.91
7.1.240.0030.18815.57
7.1.230.0070.18215.84
7.1.220.0070.18115.82
7.1.210.0070.18915.88
7.1.200.0020.19115.92
7.1.190.0070.18515.54
7.1.180.0070.19015.74
7.1.170.0000.18515.93
7.1.160.0070.18215.63
7.1.150.0000.19015.91
7.1.140.0070.18815.91
7.1.130.0070.17615.81
7.1.120.0030.18615.60
7.1.110.0030.18715.74
7.1.100.0050.18916.74
7.1.90.0100.18015.81
7.1.80.0030.18415.61
7.1.70.0020.20416.30
7.1.60.0100.18817.59
7.1.50.0080.21916.29
7.1.40.0030.18215.89
7.1.30.0070.18715.70
7.1.20.0070.18715.61
7.1.10.0000.19215.84
7.1.00.0030.25219.20
7.0.330.0070.19015.40
7.0.320.0000.20415.36
7.0.310.0070.18315.49
7.0.300.0030.19215.54
7.0.290.0030.19315.35
7.0.280.0030.18315.35
7.0.270.0000.19815.45
7.0.260.0070.18315.34
7.0.250.0000.20215.56
7.0.240.0030.19415.50
7.0.230.0030.18915.62
7.0.220.0030.17915.36
7.0.210.0070.18415.32
7.0.200.0030.18716.23
7.0.190.0030.18615.05
7.0.180.0000.18515.39
7.0.170.0070.19115.60
7.0.160.0030.18115.41
7.0.150.0070.18115.56
7.0.140.0070.22818.68
7.0.130.0070.18015.30
7.0.120.0030.19315.43
7.0.110.0100.17815.63
7.0.100.0070.18415.43
7.0.90.0030.18515.54
7.0.80.0030.18815.32
7.0.70.0030.19015.36
7.0.60.0080.23717.66
7.0.50.0050.20016.64
7.0.40.0080.24016.80
7.0.30.0120.21016.76
7.0.20.0120.21516.79
7.0.10.0020.20716.89
7.0.00.0020.23116.81
5.6.400.0000.18914.20
5.6.390.0030.18914.52
5.6.380.0070.19214.59
5.6.370.0130.18914.54
5.6.360.0030.18514.20
5.6.350.0000.19514.32
5.6.340.0030.18614.41
5.6.330.0070.19414.28
5.6.320.0030.18814.27
5.6.310.0070.18314.46
5.6.300.0070.18814.24
5.6.290.0030.18414.29
5.6.280.0030.24317.48
5.6.270.0070.19214.21
5.6.260.0000.19714.18
5.6.250.0070.18914.43
5.6.240.0070.19314.20
5.6.230.0000.18914.03
5.6.220.0030.18914.37
5.6.210.0030.24717.44
5.6.200.0030.23816.20
5.6.190.0020.23717.12
5.6.180.0250.20117.32
5.6.170.0180.21717.37
5.6.160.0120.23117.36
5.6.150.0080.24016.26
5.6.140.0030.23216.33
5.6.130.0020.22316.20
5.6.120.0030.24017.61
5.6.110.0030.21117.67
5.6.100.0070.24017.56
5.6.90.0050.23417.69
5.6.80.0080.23817.42
5.6.70.0030.19514.23
5.6.60.0030.19014.39
5.6.50.0030.19414.18
5.6.40.0000.19314.13
5.6.30.0030.18514.32
5.6.20.0030.19114.25
5.6.10.0000.19214.22
5.6.00.0070.20614.07
5.5.380.0070.18314.06
5.5.370.0100.20114.13
5.5.360.0030.18514.41
5.5.350.2220.20117.42
5.5.340.0050.20116.26
5.5.330.0050.21717.26
5.5.320.0170.23517.08
5.5.310.0170.23317.33
5.5.300.0080.20716.07
5.5.290.0020.23716.01
5.5.280.0030.20417.77
5.5.270.0100.21117.42
5.5.260.0070.20817.62
5.5.250.0070.23917.49
5.5.240.0030.23717.05
5.5.230.0070.18314.02
5.5.220.0030.18814.27
5.5.210.0030.18114.17
5.5.200.0030.20213.93
5.5.190.0030.18914.02
5.5.180.0100.18514.06
5.5.170.0000.19714.30
5.5.160.0030.19614.22
5.5.150.0030.19214.01
5.5.140.0030.18213.96
5.5.130.0030.18814.16
5.5.120.0030.20414.11
5.5.110.0070.19913.96
5.5.100.0030.18114.11
5.5.90.0000.19714.37
5.5.80.0070.18513.95
5.5.70.0070.18914.05
5.5.60.0000.19014.26
5.5.50.0030.19414.30
5.5.40.0030.19214.16
5.5.30.0070.18814.18
5.5.20.0000.19414.06
5.5.10.0000.19114.19
5.5.00.0000.19414.02
5.4.450.0120.02515.98
5.4.440.0100.03215.98
5.4.430.0100.03815.80
5.4.420.0050.03315.87
5.4.410.0040.03415.72
5.4.400.0130.02315.73
5.4.390.0130.02315.82
5.4.380.0090.03115.40
5.4.370.0070.03015.43
5.4.360.0080.02715.52
5.4.350.0090.03315.53
5.4.340.0080.03015.50
5.4.330.0090.00312.33
5.4.320.0040.02312.39
5.4.310.0050.02612.39
5.4.300.0020.02212.39
5.4.290.0100.03212.38
5.4.280.0060.02112.33
5.4.270.0040.02212.33
5.4.260.0060.02012.33
5.4.250.0060.02112.33
5.4.240.0040.02212.33
5.4.230.0050.03012.33
5.4.220.0040.02012.33
5.4.210.0060.02512.33
5.4.200.0060.02212.33
5.4.190.0070.02312.33
5.4.180.0050.02212.33
5.4.170.0060.02312.33
5.4.160.0060.02212.33
5.4.150.0040.02312.33
5.4.140.0050.02612.17
5.4.130.0040.02112.17
5.4.120.0080.01912.14
5.4.110.0060.02012.14
5.4.100.0040.02512.14
5.4.90.0090.03112.14
5.4.80.0070.03712.14
5.4.70.0070.03612.14
5.4.60.0060.02912.14
5.4.50.0040.02312.14
5.4.40.0040.02212.13
5.4.30.0040.02912.13
5.4.20.0040.03212.13
5.4.10.0080.02612.13
5.4.00.0080.03111.88
5.3.290.0070.01912.57
5.3.280.0070.02712.52
5.3.270.0060.02912.53
5.3.260.0070.02612.53
5.3.250.0050.02912.53
5.3.240.0050.02412.53
5.3.230.0020.02612.52
5.3.220.0040.02412.51
5.3.210.0070.02112.51
5.3.200.0070.02212.51
5.3.190.0070.02012.50
5.3.180.0090.01912.50
5.3.170.0040.02312.50
5.3.160.0050.02212.50
5.3.150.0070.02112.50
5.3.140.0070.02012.50
5.3.130.0080.01812.49
5.3.120.0040.02312.50
5.3.110.0040.02312.49
5.3.100.0060.01812.22
5.3.90.0040.02012.21
5.3.80.0030.02212.20
5.3.70.0080.02112.20
5.3.60.0050.02412.20
5.3.50.0050.02212.17
5.3.40.0050.02212.17
5.3.30.0030.02312.14
5.3.20.0040.02112.03
5.3.10.0060.01712.01
5.3.00.0040.02112.01
5.2.170.0030.0339.18
5.2.160.0080.0319.18
5.2.150.0070.0319.18
5.2.140.0050.0369.18
5.2.130.0060.0289.13
5.2.120.0070.0289.14
5.2.110.0050.0319.15
5.2.100.0030.0309.14
5.2.90.0070.0279.14
5.2.80.0060.0309.14
5.2.70.0040.0329.14
5.2.60.0050.0439.09
5.2.50.0050.0409.06
5.2.40.0050.0319.04
5.2.30.0060.0329.01
5.2.20.0040.0299.00
5.2.10.0060.0278.92
5.2.00.0030.0318.79
5.1.60.0050.0248.07
5.1.50.0020.0308.06
5.1.40.0020.0278.05
5.1.30.0030.0288.40
5.1.20.0030.0288.41
5.1.10.0030.0288.14
5.1.00.0050.0278.14
5.0.50.0020.0246.62
5.0.40.0020.0216.48
5.0.30.0030.0336.29
5.0.20.0070.0206.26
5.0.10.0060.0216.24
5.0.00.0040.0336.23
4.4.90.0030.0234.78
4.4.80.0100.0354.76
4.4.70.0090.0264.75
4.4.60.0050.0214.75
4.4.50.0110.0364.77
4.4.40.0020.0474.71
4.4.30.0060.0224.75
4.4.20.0020.0204.84
4.4.10.0030.0184.85
4.4.00.0010.0294.76
4.3.110.0090.0254.67
4.3.100.0050.0204.66
4.3.90.0060.0214.64
4.3.80.0060.0314.58
4.3.70.0080.0214.63
4.3.60.0040.0174.63
4.3.50.0030.0234.63
4.3.40.0040.0324.54
4.3.30.0030.0213.28
4.3.20.0020.0233.26
4.3.10.0030.0263.21
4.3.00.0070.0177.03

preferences:
39.8 ms | 401 KiB | 5 Q