3v4l.org

run code in 500+ PHP versions simultaneously
<?php // Before (8.4 and earlier) var_dump(sprintf('%.2f', -0.001)); // "-0.00" var_dump(sprintf('%.0f', -0.1)); // "-0" // After var_dump(sprintf('%.2f', -0.001)); // "0.00" var_dump(sprintf('%.0f', -0.1)); // "0"
Output for rfc.property-hooks, git.master, git.master_jit
string(5) "-0.00" string(2) "-0" string(5) "-0.00" string(2) "-0"

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:
52.97 ms | 2697 KiB | 4 Q