3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mypi = 3.1415926535897932384626433832795028841971; $pi = pi(); printf("pi: %.24f, %.24f, %.24f\n", $pi, $mypi, M_PI); $l = strlen($mypi); echo "l: $l\n"; $d = pack("d", $mypi); $l = strlen($d); echo "l: $l\n"; printf("%.24f\n", hexdec($d));
Output for git.master, git.master_jit, rfc.property-hooks
pi: 3.141592653589793115997963, 3.141592653589793115997963, 3.141592653589793115997963 l: 15 l: 8 Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /in/SPNWD on line 13 13.000000000000000000000000

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:
36.35 ms | 401 KiB | 8 Q