3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = 'test'; $password = '1234'; $hash = password_hash($password, PASSWORD_BCRYPT); echo "Hash: " . $hash . PHP_EOL; if (password_verify($password, $hash)) { echo "Valid"; }

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.3.120.0030.12814.80
7.3.110.0030.13214.91
7.3.100.0100.12014.86
7.3.90.0070.12914.71
7.3.80.0030.13315.01
7.3.70.0030.13314.59
7.3.60.0070.13014.73
7.3.50.0070.12914.65
7.3.40.0030.12614.74
7.3.30.0130.12414.79
7.3.20.0030.13216.40
7.3.10.0050.12816.59
7.3.00.0050.12816.45
7.2.240.0100.11814.80
7.2.230.0030.13214.98
7.2.220.0030.12614.88
7.2.210.0100.12415.19
7.2.200.0100.12614.99
7.2.190.0130.12314.88
7.2.180.0100.12414.72
7.2.170.0000.12414.83
7.2.160.0030.13314.70
7.2.150.0000.13416.90
7.2.140.0100.12616.94
7.2.130.0070.12516.77
7.2.120.0050.12716.94
7.2.110.0070.12616.76
7.2.100.0070.12616.83
7.2.90.0100.12516.80
7.2.80.0100.13016.86
7.2.70.0080.12416.85
7.2.60.0090.12716.98
7.2.50.0020.13416.77
7.2.40.0050.12916.98
7.2.30.0030.12817.04
7.2.20.0030.13216.84
7.2.10.0080.12816.83
7.2.00.0080.12617.84
7.1.330.0000.12715.80
7.1.320.0070.12915.58
7.1.310.0030.12815.57
7.1.300.0030.13115.69
7.1.290.0070.12815.69
7.1.280.0070.12715.32
7.1.270.0030.13015.79
7.1.260.0100.12115.49
7.1.250.0000.13515.65
7.1.200.0100.14015.80
7.1.100.0070.13218.04
7.1.70.0100.17816.82
7.1.60.0100.15120.03
7.1.50.0070.20717.02
7.1.00.0070.23322.54
7.0.200.0070.14016.68
7.0.110.0030.20019.86
7.0.100.0100.20019.91
7.0.90.0100.16320.00
7.0.80.0170.22020.01
7.0.70.0000.14719.79
7.0.60.0030.20019.81
7.0.50.0070.14019.87
7.0.40.0000.23719.68
7.0.30.0100.19719.68
7.0.20.0030.22019.59
7.0.10.0000.21319.81
7.0.00.0070.20019.70
5.6.280.0030.22320.86
5.6.260.0100.24720.63
5.6.250.0030.17320.45
5.6.240.0170.18720.62
5.6.230.0100.21320.50
5.6.220.0030.22020.62
5.6.210.0100.13720.60
5.6.200.0030.24020.50
5.6.190.0070.23720.53
5.6.180.0200.13320.60
5.6.170.0030.24720.62
5.6.160.0070.24320.63
5.6.150.0030.20720.63
5.6.140.0100.19020.55
5.6.130.0130.18020.55
5.6.120.0070.20720.51
5.6.110.0000.17020.54
5.6.100.0070.19320.59
5.6.90.0070.16020.55
5.6.80.0070.17319.96
5.6.70.0130.20019.79
5.6.60.0030.18320.17
5.6.50.0070.20319.97
5.6.40.0030.14019.93
5.6.30.0100.24019.84
5.6.20.0030.19319.89
5.6.10.0000.21319.77
5.6.00.0130.19019.94
5.5.380.0130.18720.42
5.5.370.0030.20720.42
5.5.360.0130.20720.34
5.5.350.0100.17020.33
5.5.340.0130.22020.89
5.5.330.0130.20320.70
5.5.320.0100.21020.85
5.5.310.0130.18720.93
5.5.300.0170.19720.77
5.5.290.0130.22020.75
5.5.280.0130.26720.69
5.5.270.0070.25020.74
5.5.260.0130.22020.95
5.5.250.0070.20320.49
5.5.240.0030.22320.37
5.5.230.0000.20320.31
5.5.220.0070.22020.36
5.5.210.0070.16720.19
5.5.200.0070.14020.03
5.5.190.0030.21020.28
5.5.180.0030.20720.04
5.5.160.0000.19020.29
5.5.150.0030.16720.07
5.5.140.0130.21020.21
5.5.130.0070.21020.13
5.5.120.0070.20320.32
5.5.110.0030.20020.19
5.5.100.0100.16320.17
5.5.90.0000.23019.96
5.5.80.0070.19320.20
5.5.70.0100.26019.98
5.5.60.0000.14320.20
5.5.50.0100.21720.17
5.5.40.0000.14719.95
5.5.30.0070.19020.13
5.5.20.0130.19319.97
5.5.10.0070.21720.17
5.5.00.0100.14320.16
5.4.450.0170.07719.45
5.4.440.0130.08019.28
5.4.430.0100.07719.27
5.4.420.0070.03319.27
5.4.410.0070.07319.21
5.4.400.0130.06319.27
5.4.390.0070.07719.00
5.4.380.0000.07719.02
5.4.370.0030.07318.98
5.4.360.0030.06719.03
5.4.350.0030.07719.25
5.4.340.0100.07018.95
5.4.320.0030.04019.27
5.4.310.0030.08318.98
5.4.300.0030.05719.24
5.4.290.0030.08019.11
5.4.280.0200.06719.02
5.4.270.0130.07019.03
5.4.260.0070.07019.25
5.4.250.0170.06018.98
5.4.240.0070.07019.07
5.4.230.0030.07319.11
5.4.220.0030.06019.11
5.4.210.0100.07719.17
5.4.200.0070.07719.11
5.4.190.0070.07319.00
5.4.180.0170.06318.94
5.4.170.0030.08018.92
5.4.160.0070.05319.09
5.4.150.0070.04019.14
5.4.140.0070.07316.32
5.4.130.0070.07016.15
5.4.120.0070.03316.39
5.4.110.0030.04016.48
5.4.100.0070.06716.28
5.4.90.0070.05716.29
5.4.80.0030.07716.17
5.4.70.0100.06716.38
5.4.60.0070.04016.35
5.4.50.0030.03716.50
5.4.40.0070.06316.40
5.4.30.0070.07016.45
5.4.20.0070.03016.34
5.4.10.0130.06716.22
5.4.00.0070.07315.63

preferences:
32.52 ms | 401 KiB | 5 Q