3v4l.org

run code in 300+ PHP versions simultaneously
<?php function s($n) { print "SET precision to $n\n"; print "\n"; ini_set('precision', $n); ini_set('serialize_precision', $n); } function dump($f) { print "var_export: ".var_export($f, true)."\n"; print "serialize: ".serialize($f)."\n"; print "json_encode: ".json_encode($f)."\n"; print "\n"; } $f = 10/3; s(3); dump($f);
Output for git.master, git.master_jit, rfc.property-hooks
SET precision to 3 var_export: 3.33 serialize: d:3.33; json_encode: 3.33

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