3v4l.org

run code in 500+ PHP versions simultaneously
<?php $hex = '#ffffff'; $red = hexdec( substr( $hex, 0, 2 ) ); $green = hexdec( substr( $hex, 2, 2 ) ); $blue = hexdec( substr( $hex, 4, 2 ) ); var_dump(compact('red', 'green', 'blue'));
Output for git.master_jit, git.master, rfc.property-hooks
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /in/RNVnF on line 5 array(3) { ["red"]=> int(15) ["green"]=> int(255) ["blue"]=> int(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:
50.79 ms | 1283 KiB | 4 Q