3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php declare(strict_types=1); $hashedPassword = password_hash('', PASSWORD_BCRYPT); $hashedPassword = password_hash($_POST['psasword'], PASSWORD_BCRYPT); echo $hashedPassword;
based on nNHsa
Output for 7.0.0 - 7.2.0
Notice: Undefined index: psasword in /in/CXlU2 on line 5 Fatal error: Uncaught TypeError: password_hash() expects parameter 1 to be string, null given in /in/CXlU2:5 Stack trace: #0 /in/CXlU2(5): password_hash(NULL, 1) #1 {main} thrown in /in/CXlU2 on line 5
Process exited with code 255.
Output for 5.6.21
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$b8M9Z0dMNdZE8xs1NtMaJuz56YpRTB3SqJcifCj34Cz9hTpgrVnKS
Output for 5.6.20
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$DLiOjU4LpOELJVvnuZ8uxe2PEomOApFOheJnHwbEX/SZvRNvvXJpK
Output for 5.6.19
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$1hrVMe65f8a.0lCyGrmyk.NXh0dHW1VhqqMtw.05c7kxzdw6WivGu
Output for 5.6.18
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$oKID2zbkS4n.GC5OADk2auYI61KawByrIZDFhy7tGsfzQt64u5eDy
Output for 5.6.17
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$NjH6gLu8acZt8HczWJ8mmu1YkkeLBgi0Wa6ItdkNlt7HsApT6tyN6
Output for 5.6.16
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$3Bs8tCVnTuW6eYrixhQLUuoef7EL0IriTCpEHAFq4/svPLY7p1WLu
Output for 5.6.15
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$ps.GB2S.aljB8f0V88WQKOEoy8.mtyCD3t98j1hFDvf2lpDOejLy.
Output for 5.6.14
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$4b/tkdYMQX2k.NLtoV.M6.bqi0JRvy7Z1o2sn3ZYd4E3u5XAyA2zi
Output for 5.6.13
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$5uEVG6kGHlLq2Mizk502DOsh58JmwHdz0xCDjwcBxKZrA4ut0wkGy
Output for 5.6.12
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$qTKgxGdMpfXi7St40VyTf.tdiy6X/r3BuQLUlWArNaJALz/RQ9XCq
Output for 5.6.11
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$FjO3Kem3KrCtZ6am9CF.5.2w.cPg2ia3L0b.690KjOcHAIPc2KTP6
Output for 5.6.10
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$63mm6U1/rLiHIbpQr8Xkc.f09bQj6gwLaDI.kRY8sxJmXEqT/KGiu
Output for 5.6.9
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$0jyN8jIoJ.gM3WrMs.BKs.T41aozO0pJ7zPVPI6bNwK9oVYgA5dlm
Output for 5.6.8
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$4DpTT8nK6Mv9YUxCX9AdL.jCPHu73UJX6wJIhIs2a/BXFSad8ITl2
Output for 5.5.35
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$1wXqUWBAewhA.4gGWtU2de93yeO.8vNzeaih0f4Qk065bYT0FhN2C
Output for 5.5.34
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$2HZ0hB40kjqAnqBy1wzZae1Yw.Ga8WQXZBlIr2KGhuHgrApraivNC
Output for 5.5.33
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$XsQTZE4/tc5I63Hb/YgwFOLFmrbuVwhMzdFWZZuHqd1miaNo/croC
Output for 5.5.32
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$YTlW8sXTSor00ltt.j.ULeBsZH/fzFFT.d78.izEavSOs5lixiPMq
Output for 5.5.31
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$L14J3sveGJpI.64BZ3Lx.OmwSXQAchladsfQbsi0mOdrDw8RhhppK
Output for 5.5.30
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$AqpODVHAaH0t95Nre3vIXuzZ7ZpX8xCgY7BCatGNHMEa8NJnhAiia
Output for 5.5.29
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$NU9h6OFKX3.SLXNl5c2eTegDGhzpVMmP.RZ4/HbRTeUk.GnuIJjUq
Output for 5.5.28
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$Uh8QXSs4ghVMx3Y2HqcwpuJ1Xw9pVdKYqryWzNuv2.coV6O0UWRay
Output for 5.5.27
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$5i.tEeE5./NRvEvQqQzKwuXCSGvrxKRSOLFZMOs4cQ489nrav01gu
Output for 5.5.26
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$6EGyf7gv6fdEgLDSAJSHD.YJzyBuRs8cVGgkBKJ/WpCrQlD3iHg5u
Output for 5.5.25
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$.1wQBOYb2WlKJ0yMV/isLew0VvEVl2lpFuycyv1VZ5babLOaBPAZG
Output for 5.5.24
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Notice: Undefined index: psasword in /in/CXlU2 on line 5 $2y$10$rDU9TVCw1pm4u6ES1xWHQ.tzigwb7v/5UFJXzu6N4WAJFxEmlN0Wi
Output for 5.3.18 - 5.4.45
Warning: Unsupported declare 'strict_types' in /in/CXlU2 on line 2 Fatal error: Call to undefined function password_hash() in /in/CXlU2 on line 4
Process exited with code 255.