3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $y=0123456789; $opciones = [ 'cost' => 12, ]; $y=password_hash($y, PASSWORD_DEFAULT, $opciones); if(password_verify('0123456789',$y)){ echo 'si'; } echo $y;
based on Q5Fr6
Output for 5.6.28
$2y$12$YtViCqO7m7oQwTaVrUATQuiM05Uf4Wqjtv4Tw6rS5k.UVp9IxlFom
Output for 5.6.21
$2y$12$qYpQF4QhzL3OvLf0A4aFseQ6piIz3rAqAhQKb/xwCav.3L8BBGKq2
Output for 5.6.20
$2y$12$lfYDQ3.L9JkHTQN8ozYQLuRF.5Jv8TNULG44R8cA/3F.Hw4fjRPHK
Output for 5.6.19
$2y$12$i.GHxB4a4FYt.QRhGil0G.UxrNvFaD3sbK39P1oGzrM/EtqzMPWQG
Output for 5.6.18
$2y$12$e1SPGQT19bOe0LeE7uG/WODFO5qvzpBKNb4BWbG2DTov73RxVyLn2
Output for 5.6.17
$2y$12$h/EIgXo.hCi6Ev2Tkw693OAIk1VcIFpZXrGeeZwmDHJUOQrFzC/G2
Output for 5.6.16
$2y$12$NzhBRtndvNK0ToCh7TOV..76WKpC5JmoedsZVGfGDEe9LQwk3Xi06
Output for 5.6.15
$2y$12$NGjXFUmAR58btQuq5lZgpOuBCJ5PdG0xdEWMGfgnwxC8Gchimtrga
Output for 5.6.14
$2y$12$YaqklLfSUJB7htLfFXiWBelb/Ja/kN0apyDux2Kx5VzOKo5x7/dwW
Output for 5.6.13
$2y$12$wFMD9r9pNUSfm/JMBbHWy.8B5Fz8gXaSveEJX3kkyUCpPiBXkjPIO
Output for 5.6.12
$2y$12$j68ZTeicbb471m70YqeEoeEG4t/l2FaHS9rE1DOR93Dt9dEZTWFvS
Output for 5.6.11
$2y$12$CUjT8yU13KGttNOfCWn3zOQthhOHUtAc9Z3GEO3zhXI4zAsawof9.
Output for 5.6.10
$2y$12$YtMdbz3Y6eUxVwC/iuO15u5qD31BGyjTTUCVorKsobJ/rh7vOKjUK
Output for 5.6.9
$2y$12$BLlMTTsOFr2IfOgDrVqpNeooX6dviTqgrFVPGFzyDNSaZ7bhT2xau
Output for 5.6.8
$2y$12$oubP9zxaKZf/vk27zWzr4.5AS5Q3BtTEEdTrWkhyO0Pq1ZuHUStwC
Output for 5.5.35
$2y$12$uxnN.BQVNoHM8fUHeKfbaeXnw7TDQrsoZApqwSNdbl1kFgV4WM8Ze
Output for 5.5.34
$2y$12$AXLjbVAhoBbyDxWUsLL8.ejn8ENawSg6p8lSvz6nt88.5jRCIo6dm
Output for 5.5.33
$2y$12$XhEn9nP4ryvEPqrWthgkQuI590SI6cCriqv5vTD42kTHAmCBqwziy
Output for 5.5.32
$2y$12$Cw9Dd9WvjKzQRU/N3FBJK.1Hs5jvtLu5wUIgkc2I4yBTZ4aN.XDpW
Output for 5.5.31
$2y$12$vx/o6N32vuCGgvrjxFr07OoR8o0jeuwbcJAio2igFEejELneNGE9C
Output for 5.5.30
$2y$12$AEJm/v4Lgki8tpM09E1p7efoQfWwxKjtfN3AdUSlmOPzxiFLBpDZS
Output for 5.5.29
$2y$12$3Z5mfA/lYkpHm0huHiM48O0wrbqEqOWs1PaEecnV59RCD8dAYCLV6
Output for 5.5.28
$2y$12$ahEKXvdPyXXx5hDlxpS72O6Iu/.OBR9azBJdBBQM9QmYqAVSh3rjy
Output for 5.5.27
$2y$12$ZX47jCmnulO7Ioe540Kv..kSlU9TsjhKyqUbcmGJgIWDlI/G8DXHq
Output for 5.5.26
$2y$12$aneOzsqUVw/v8w/BOgBl4ep3cf9TDEnNPEIF1kuNs0Kh.S3MCWH8y
Output for 5.5.25
$2y$12$MTTXKd5pzrUBi.JoQriO1.5sjV2fS9GCvt2XZlcVSxWaqcommTqeK
Output for 5.5.24
$2y$12$uTxyJgNe79Uf1dP0Q54Mk.HwjWdEIHC410oj3UoKpAM7/54oDwc92
Output for 5.4.0 - 5.4.32
Fatal error: Call to undefined function password_hash() in /in/OqeCp on line 6
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/OqeCp on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/OqeCp on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/OqeCp on line 3
Process exited with code 255.