3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bcrypt = '$2y$13$vBfHHrj12s49n6psX2DjTuPP5ZN6hL9SvmCWfOnFmXm9R3dnPAeyW'; $bcryptNeedsRehash = preg_replace('/\$\d{2}\$/', '\$' . 11 . '\$', $bcrypt); var_dump($bcrypt, $bcryptNeedsRehash); var_dump(password_hash('qG$4%7fM', PASSWORD_BCRYPT, array('cost'=>13)));

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.10.0070.50516.43
7.3.00.0230.48916.34
7.2.130.0100.50316.45
7.2.120.0100.48116.84
7.2.110.0320.48216.61
7.2.100.0110.49216.44
7.2.90.0230.49216.67
7.2.80.0170.49816.85
7.2.70.0300.49316.41
7.2.60.0310.47916.81
7.2.50.0200.48216.39
7.2.40.0230.48916.61
7.2.30.0400.49616.80
7.2.20.0230.49216.75
7.2.10.0390.47517.07
7.2.00.0150.49218.22
7.1.250.0070.50215.48
7.1.200.0100.48716.07
7.1.100.0070.50118.52
7.1.70.0030.48917.36
7.1.60.0130.55819.70
7.1.50.0100.50716.85
7.1.00.0000.57322.32
7.0.200.0070.48316.88
7.0.140.0100.54322.06
7.0.60.0070.58021.84
7.0.50.0100.59022.07
7.0.40.0030.58720.08
7.0.30.0030.57320.12
7.0.20.0070.59020.06
7.0.10.0400.57720.03
7.0.00.0000.61020.10
5.6.280.0030.57021.03
5.6.210.0030.59320.49
5.6.200.0000.59021.14
5.6.190.0000.60021.00
5.6.180.0130.57721.00
5.6.170.0130.58320.98
5.6.160.0130.57021.02
5.6.150.0030.60021.00
5.6.140.0070.59321.09
5.6.130.0130.60020.89
5.6.120.0000.44320.96
5.6.110.0070.45021.00
5.6.100.0000.51020.95
5.6.90.0100.59321.07
5.6.80.0030.43320.37
5.6.70.0030.58320.46
5.6.60.0070.60020.40
5.6.50.0070.56720.40
5.6.40.0000.52720.48
5.6.30.0000.58320.34
5.6.20.0000.44720.40
5.6.10.0030.43720.37
5.6.00.0000.45320.48
5.5.350.0030.58320.39
5.5.340.0100.58320.76
5.5.330.0070.58020.73
5.5.320.0070.52720.73
5.5.310.0030.54720.73
5.5.300.0400.55720.66
5.5.290.0070.59720.84
5.5.280.0030.43720.87
5.5.270.0070.43720.86
5.5.260.0100.58020.65
5.5.250.0000.49020.54
5.5.240.0030.52720.23
5.5.230.0100.57720.14
5.5.220.0030.59320.24
5.5.210.0070.57320.02
5.5.200.0070.55320.03
5.5.190.0030.47320.11
5.5.180.0030.45720.03
5.5.160.0070.43020.22
5.5.150.0000.43719.99
5.5.140.0070.42720.14
5.5.130.0100.45020.02
5.5.120.0000.43320.18
5.5.110.0230.58720.21
5.5.100.0030.55720.11
5.5.90.0070.57320.08
5.5.80.0100.59720.00
5.5.70.0000.56319.96
5.5.60.0100.58320.05
5.5.50.0030.59320.03
5.5.40.0100.53719.98
5.5.30.0100.58019.87
5.5.20.0000.56019.96
5.5.10.0070.59719.98
5.5.00.0030.57020.07
5.4.450.0030.04019.50
5.4.440.0100.03719.38
5.4.430.0070.06719.34
5.4.420.0030.07719.49
5.4.410.0030.07019.22
5.4.400.0030.07718.99
5.4.390.0030.07318.85
5.4.380.0070.07318.84
5.4.370.0070.07319.00
5.4.360.0070.03319.01
5.4.350.0070.07719.17
5.4.340.0070.02718.90
5.4.320.0070.02719.04
5.4.310.0000.03719.01
5.4.300.0030.02719.05
5.4.290.0000.03018.98
5.4.280.0030.03019.00
5.4.270.0000.08019.00
5.4.260.0030.06318.96
5.4.250.0030.07718.84
5.4.240.0030.05718.94
5.4.230.0030.06318.96
5.4.220.0100.07018.84
5.4.210.0030.04319.01
5.4.200.0000.08019.05
5.4.190.0000.05718.89
5.4.180.0030.05318.99
5.4.170.0070.07719.14
5.4.160.0030.06319.19
5.4.150.0030.07719.05
5.4.140.0100.06716.32
5.4.130.0070.05716.11
5.4.120.0030.07016.36
5.4.110.0030.07316.30
5.4.100.0000.05716.21
5.4.90.0030.06016.24
5.4.80.0030.07016.23
5.4.70.0130.05316.23
5.4.60.0130.06016.37
5.4.50.0030.05716.17
5.4.40.0000.07716.29
5.4.30.0030.07316.23
5.4.20.0070.07316.19
5.4.10.0100.07016.31
5.4.00.0030.07315.80
5.3.290.0000.03014.61
5.3.280.0000.06014.53
5.3.270.0070.08014.58
5.3.260.0070.07314.55
5.3.250.0100.06314.53
5.3.240.0100.05714.58
5.3.230.0000.06314.39
5.3.220.0070.06714.50
5.3.210.0030.06314.52
5.3.200.0130.07014.51
5.3.190.0100.06314.48
5.3.180.0100.06314.53
5.3.170.0070.06314.50
5.3.160.0070.07714.39
5.3.150.0030.07314.48
5.3.140.0000.07714.53
5.3.130.0070.07714.52
5.3.120.0000.07714.48
5.3.110.0030.07314.50
5.3.100.0000.07713.98
5.3.90.0000.07313.94
5.3.80.0000.04713.99
5.3.70.0000.04013.86
5.3.60.0070.06313.84
5.3.50.0100.06713.91
5.3.40.0000.04713.91
5.3.30.0030.03713.68
5.3.20.0030.05313.63
5.3.10.0030.06313.59
5.3.00.0000.07013.53
5.2.170.0100.05311.25
5.2.160.0100.04011.25
5.2.150.0000.03011.25
5.2.140.0030.02711.25
5.2.130.0030.06011.25
5.2.120.0070.05711.25
5.2.110.0000.06311.25
5.2.100.0030.05711.25
5.2.90.0000.06311.25
5.2.80.0000.04311.25
5.2.70.0070.06011.25
5.2.60.0030.05011.25
5.2.50.0030.05711.25
5.2.40.0070.05711.25
5.2.30.0000.06011.25
5.2.20.0070.06011.25
5.2.10.0000.05711.25
5.2.00.0000.06011.25
5.1.60.0030.04711.25
5.1.50.0030.05311.25
5.1.40.0030.05011.25
5.1.30.0070.05311.25
5.1.20.0000.05711.25
5.1.10.0000.05711.25
5.1.00.0000.04711.25
5.0.50.0030.04311.25
5.0.40.0070.04011.25
5.0.30.0030.06011.25
5.0.20.0000.04711.25
5.0.10.0030.04011.25
5.0.00.0030.06011.25
4.4.90.0000.03711.25
4.4.80.0030.02711.25
4.4.70.0030.03311.25
4.4.60.0030.03011.25
4.4.50.0030.03311.25
4.4.40.0030.04711.25
4.4.30.0070.03011.25
4.4.20.0030.03011.25
4.4.10.0000.03711.25
4.4.00.0000.05311.25
4.3.110.0000.03711.25
4.3.100.0000.03711.25
4.3.90.0030.03311.25
4.3.80.0000.05311.25
4.3.70.0000.03711.25
4.3.60.0030.03311.25
4.3.50.0070.02711.25
4.3.40.0000.04011.25
4.3.30.0030.03011.25
4.3.20.0000.03711.25
4.3.10.0000.04011.25
4.3.00.0000.03311.25

preferences:
36.66 ms | 401 KiB | 5 Q