3v4l.org

run code in 300+ PHP versions simultaneously
<?php $res = 8 * pow(16,-1); // 0.5 echo base_convert("$res",10,16); // 5 echo dechex($res); // 0 printf("%x",$res); // 0
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /in/pM33X on line 6 5 Deprecated: Implicit conversion from float 0.5 to int loses precision in /in/pM33X on line 8 00

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:
38.4 ms | 402 KiB | 8 Q