3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = INF; var_dump((string)$f); var_dump((int)$f); var_dump((bool)$f); echo "--\n"; $f = NAN; var_dump((string)$f); var_dump((int)$f); var_dump((bool)$f);
Output for git.master, git.master_jit
string(3) "INF" Warning: The float INF is not representable as an int, cast occurred in /in/lYIng on line 5 int(0) bool(true) -- Warning: unexpected NAN value was coerced to string in /in/lYIng on line 11 string(3) "NAN" Warning: The float NAN is not representable as an int, cast occurred in /in/lYIng on line 12 int(0) Warning: unexpected NAN value was coerced to bool in /in/lYIng on line 13 bool(true)

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:
25.52 ms | 406 KiB | 5 Q