3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = 25.4598624; ini_set('precision', 14); var_dump((string) $f); ini_set('precision', 3); var_dump((string) $f); ini_set('precision', 0); var_dump((string) $f);
Output for git.master, git.master_jit
string(10) "25.4598624" string(4) "25.5" string(6) "3.0E+1"

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:
51.11 ms | 708 KiB | 4 Q