3v4l.org

run code in 500+ PHP versions simultaneously
<?php $cost = 12; while ( --$cost ) { password_hash( 'password', PASSWORD_BCRYPT, [ 'cost' => $cost ]); var_dump($cost); }
Output for rfc.property-hooks, git.master, git.master_jit
int(11) int(10) int(9) int(8) int(7) int(6) int(5) int(4) Fatal error: Uncaught ValueError: Invalid bcrypt cost parameter specified: 3 in /in/15DFo:5 Stack trace: #0 /in/15DFo(5): password_hash(Object(SensitiveParameterValue), '2y', Array) #1 {main} thrown in /in/15DFo on line 5
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
48.04 ms | 2660 KiB | 4 Q