3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_input="My1sTpassword"; $password = crypt("My1sTpassword"); // let salt be generated /* Si dovrebbe passare l'intero risultato di crypt() come chiave di confronto della password per evitare problemi con differenti algoritmi di hash. (Come detto prima*/ /* lo standard basato su DES usa chiavi di 2 caratteri,*/ echo crypt($user_input, $password); mentre lo standard basato su MD5 ne usa 12). */ if (crypt($user_input, $password) == $password) { echo "Password verified!"; } ?>

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.200.0050.03812.38
5.4.190.0150.04412.36
5.4.180.0140.04412.36
5.4.170.0140.04612.37
5.4.160.0180.04212.36
5.4.150.0170.04412.36
5.4.140.0160.04112.05
5.4.130.0160.04312.03
5.4.120.0220.04212.00
5.4.110.0180.04512.00
5.4.100.0290.09712.00
5.4.90.0140.04512.00
5.4.80.0110.04712.00
5.4.70.0180.04011.99
5.4.60.0120.04511.99
5.4.50.0100.04712.00
5.4.40.0170.04311.98
5.4.30.0170.04311.97
5.4.20.0200.03711.97
5.4.10.0190.03811.98
5.4.00.0130.04211.47
5.3.270.0180.04412.73
5.3.260.0180.04412.72
5.3.250.0170.04412.71
5.3.240.0180.04312.72
5.3.230.0100.05112.71
5.3.220.0130.04812.68
5.3.210.0150.04612.68
5.3.200.0170.04612.68
5.3.190.0140.04712.68
5.3.180.0140.04712.67
5.3.170.0190.04412.67
5.3.160.0230.04312.67
5.3.150.0180.04612.67
5.3.140.0140.04812.66
5.3.130.0230.04412.66
5.3.120.0160.04712.66
5.3.110.0140.04812.66
5.3.100.0200.04112.12
5.3.90.0190.04112.08
5.3.80.0160.04712.08
5.3.70.0190.04312.07
5.3.60.0180.04412.06
5.3.50.0160.04512.00
5.3.40.0180.04412.00
5.3.30.0170.04211.93
5.3.20.0190.04311.71
5.3.10.0140.04311.67
5.3.00.0160.04111.66

preferences:
144.88 ms | 1394 KiB | 7 Q