3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $options = [ 'cost' => 11, 'salt' => mcrypt_create_iv(22, MCRYPT_DEV_URANDOM), ]; echo password_hash("password", PASSWORD_BCRYPT, $options);
based on pEuq4
Output for 7.0.6 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_create_iv() in /in/e26pj:4 Stack trace: #0 {main} thrown in /in/e26pj on line 4
Process exited with code 255.
Output for 7.0.5
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/e26pj on line 6 $2y$11$juugyhg0ZxLxticg7o4piOW8H2NawdRzO8.2crrPShmi.iLTLYKJu
Output for 7.0.4
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/e26pj on line 6 $2y$11$WQ/qSKTw7CkVCa9jZmim1.n9fjJdq83s5gUSXAuYpU34xKdZIJ8I.
Output for 7.0.3
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/e26pj on line 6 $2y$11$piYmRdTLzCxo6UEFOaHhB.aTvZG42Zz6q43R1e6OKn52u6fbqjW0.
Output for 7.0.2
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/e26pj on line 6 $2y$11$.cr9oNJjAdPLtNtSKQkkOuH0NAN5y5w52H8VLyVlp.bejwK6UPgtS
Output for 7.0.1
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/e26pj on line 6 $2y$11$kV5W0eF9kt5VhIvHB5ZXkeXhw/Rv0qosO9NArr4PTkAqArntxnx7a
Output for 7.0.0
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/e26pj on line 6 $2y$11$EmvkoQHcT7WGL1fR33aLqOtgbi12kqT2JVjR7ySSvBZS5cGrcI4ce
Output for 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_create_iv() in /in/e26pj on line 4
Process exited with code 255.
Output for 5.6.20
$2y$11$z51Gy4siww.scgchEqrYX.Ec.61IZOYA4q2QAG7AGdi.FLTFPt5Q2
Output for 5.6.19
$2y$11$mqkpKgQjZlc6as99gAxmnONt13CEz10d5Kx.RQ1RzszXOq3.9.To.
Output for 5.6.18
$2y$11$mrV9z8f3iUyZs3NEeYLDreLXDWkddTd40PoeaTjkAx7fLVtZmaYie
Output for 5.6.17
$2y$11$urcFrYPzl.xXSw40HaF7febEut766hXW/cLqyVLjL2Vb3JAUkJUr2
Output for 5.6.16
$2y$11$lNnwMhNpRsTbXfNl7cYDdOWz7XLUnvmPI2Zp3kZgw0eu8Kq387S.a
Output for 5.6.15
$2y$11$S5fFLeu33Chd3qpZbB6fv.K5u.AmWbb2RtNpUIsIg5juUnOHc/Vw2
Output for 5.6.14
$2y$11$Dnfe6BYCtmCh61Foq.bguOhwmS.HVJ7h4L.F3wcGQWKTDQdMJ6wY2
Output for 5.6.13
$2y$11$gIYDKQx8wxEpUjkllrIdfesXLNZWDesgEs/nWPK0XhPW/0e4m80Cq
Output for 5.6.12
$2y$11$DHjHnTyrT/KHvkGvu/EcAujBGxDrtNBml1L9iNLY.1nYhJxYFBqpC
Output for 5.6.11
$2y$11$uFWfTd46c9peXdDv1f0UNOiSi/wZCoeTsWtuPA65lq/l027wBtwZO
Output for 5.6.10
$2y$11$ykAZ.UWEJIhdJLoZwSCsCemJwm.Z6pNwwr4eHhlMTEPQaHbhuyOWC
Output for 5.6.9
$2y$11$/emUzHwRgVNS.3KQWT0BMOSrfYIuQ4oylA0WOF0Lu16mHIqBjcgPq
Output for 5.6.8
$2y$11$Xqkns8ADMkLCllF7i4rck.GkAOZeeXSREsps5NGpCBwAWFzhlT0CS
Output for 5.5.34
$2y$11$Ls9sFR.aTTWc4wKQ4uu0RORBv6euY5FHgcaFV5.pQdJp.EWcwMHe6
Output for 5.5.33
$2y$11$ICh3IZGNeUqkKHbeKfjkyuDIQBzACBsVwGi2GaAW/UzmCDPmgYtgy
Output for 5.5.32
$2y$11$xv4tg8BOCRjn9duugxvK8ejm8TtjS3xES0kTovIV4HZLrVIKrVJLm
Output for 5.5.31
$2y$11$Lnyomc62408UUmiWv3Nky./CYqvdIH0xs4Q2qFEwZLnP7rbMfLCSK
Output for 5.5.30
$2y$11$aUIQv8HLtx/C4Hx5ii2uZeHy7slM7VmNQ29nrxWdJ.bqcN3wVpBLu
Output for 5.5.29
$2y$11$rGwhEbccxDRsmhfqDr2PZeU2HqyMFIA98xFT2cWFN2MIThSFlLC4S
Output for 5.5.28
$2y$11$4CJsI1IsCT8qvsNzbGt.4.4zTYzTM0v3gYMJDKNEx/uKNb8tjFiEi
Output for 5.5.27
$2y$11$UnHQ4jOJneC/sxgU5SJiJ.sC3KVXInQseQfJr.P72V/bsoGIaYl3G
Output for 5.5.26
$2y$11$AedLOW2hcWC8cqWJi08fz.ot/FxkjgAmjq.2a7hoPA1aCnXQlD3S2
Output for 5.5.25
$2y$11$iwt.fqCW88zPk8r/3OA/SuUni0oFV/B6mEI4xhUwUtD2g45JusOYW
Output for 5.5.24
$2y$11$h95lHnn3LTSP3CUKXsrLGO0KuGadeTmFipuSziIz9sbbtK754zbf2
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/e26pj on line 6
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/e26pj on line 2
Process exited with code 255.