3v4l.org

run code in 300+ PHP versions simultaneously
<?php username: admin $password = 12345678; // hashed password: $2y$12$$$$$$$$$$$$$$$$$$$$$$.ibwcWrMlgLR7y6B62/Vc8Dc54kecHHe$1$ZQhX9D2d$RexVJ.y2KWpfxMyY0tN9E1 $salt = 'HJsZ4yBWNbGQCw1Yi-7rGBunXym7AEIFatIHhaK_fQgY6I1ecqAEs7eAmJM88Zdn5VpdrKie2CN39~PjqSb3yoPCCzl4q8'; $vsalt = 'S2qXSXQUc-'; function hashing($password ,$salt ,$vsalt){ $check1 = crypt($password.$salt,'$2y$12$'.$vsalt); $check2 = crypt($password.$salt,$vsalt); //password will be: $check1.$check2 return($check1.$check2); } var_dump(hashing(12345678, $salt, $vsalt), hashing('12345678', $salt, $vsalt));

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)
5.4.300.0050.03812.50
5.4.290.0060.03812.49
5.4.280.0090.03212.39
5.4.270.0080.03312.39
5.4.260.0050.03912.39
5.4.250.0060.03712.39
5.4.240.0070.03812.39
5.4.230.0040.04012.38
5.4.220.0070.03512.38
5.4.210.0110.03112.38
5.4.200.0080.03812.38
5.4.190.0060.03812.38
5.4.180.0060.03812.38
5.4.170.0060.03812.38
5.4.160.0160.03512.38
5.4.150.0060.03712.38
5.4.140.0060.03812.07
5.4.130.0110.03112.05
5.4.120.0080.03612.02
5.4.110.0070.03512.01
5.4.100.0060.03612.01
5.4.90.0080.04612.01
5.4.80.0050.04012.02
5.4.70.0040.03712.00
5.4.60.0080.03212.01
5.4.50.0030.03912.00
5.4.40.0030.03811.99
5.4.30.0060.03511.99
5.4.20.0080.03511.98
5.4.10.0040.03711.99
5.4.00.0030.04111.49
5.3.280.0080.03712.71
5.3.270.0050.04312.72
5.3.260.0060.04112.72
5.3.250.0050.03812.72
5.3.240.0120.05012.72
5.3.230.0080.03812.71
5.3.220.0080.04512.68
5.3.210.0080.05812.68
5.3.200.0070.04912.68
5.3.190.0060.04112.68
5.3.180.0080.03612.67
5.3.170.0120.04512.66
5.3.160.0080.04212.68
5.3.150.0070.03712.67
5.3.140.0100.03212.66
5.3.130.0050.04012.66
5.3.120.0070.03912.65
5.3.110.0050.04112.66
5.3.100.0050.03912.12
5.3.90.0070.03612.08
5.3.80.0070.05012.07
5.3.70.0070.03812.08

preferences:
139.84 ms | 1394 KiB | 7 Q