3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = gmp_init(PHP_INT_MAX); $value = ($value * 100000) + 1000; echo "value is " . $value . "\n"; ini_set('precision', -1); for ($i=1; $i < 20; $i += 1) { printf("%2d : test = %f %d \n", $i, (PHP_INT_MAX * 100000) + ($i * 500000), $i * 500000); }
Output for git.master, git.master_jit, rfc.property-hooks
value is 922337203685477580701000 1 : test = 922337203685477580800000.000000 500000 2 : test = 922337203685477580800000.000000 1000000 3 : test = 922337203685477580800000.000000 1500000 4 : test = 922337203685477580800000.000000 2000000 5 : test = 922337203685477580800000.000000 2500000 6 : test = 922337203685477580800000.000000 3000000 7 : test = 922337203685477580800000.000000 3500000 8 : test = 922337203685477580800000.000000 4000000 9 : test = 922337203685477580800000.000000 4500000 10 : test = 922337203685477580800000.000000 5000000 11 : test = 922337203685477580800000.000000 5500000 12 : test = 922337203685477580800000.000000 6000000 13 : test = 922337203685477580800000.000000 6500000 14 : test = 922337203685477580800000.000000 7000000 15 : test = 922337203685477580800000.000000 7500000 16 : test = 922337203685477580800000.000000 8000000 17 : test = 922337203685477580800000.000000 8500000 18 : test = 922337203685477580800000.000000 9000000 19 : test = 922337203685477580800000.000000 9500000

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:
56.23 ms | 403 KiB | 8 Q