3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = gmp_init(42); $b = gmp_init(17); // Pre-5.6 code: var_dump(gmp_add($a, $b)); var_dump(gmp_add($a, 17)); var_dump(gmp_add(42, $b)); // New code: var_dump($a + $b); var_dump($a + 17); var_dump(42 + $b);
Output for git.master, git.master_jit, rfc.property-hooks
object(GMP)#3 (1) { ["num"]=> string(2) "59" } object(GMP)#3 (1) { ["num"]=> string(2) "59" } object(GMP)#3 (1) { ["num"]=> string(2) "59" } object(GMP)#3 (1) { ["num"]=> string(2) "59" } object(GMP)#3 (1) { ["num"]=> string(2) "59" } object(GMP)#3 (1) { ["num"]=> string(2) "59" }

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