3v4l.org

run code in 300+ 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 git.master_jit, git.master, rfc.property-hooks
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:
38.02 ms | 409 KiB | 6 Q