3v4l.org

run code in 500+ PHP versions simultaneously
<?php use BcMath\Number; $a = new Number('1.005691112'); $b = new Number('2.567891112'); $result = $a ** $b; echo $result->round(2); echo PHP_EOL; echo $result; echo PHP_EOL; echo 1.005691112 ** 2.567891112; echo PHP_EOL; echo 'precision is '.ini_get('precision');
Output for git.master_jit, git.master
Fatal error: Uncaught ValueError: exponent cannot have a fractional part in /in/9i85S:8 Stack trace: #0 {main} thrown in /in/9i85S on line 8
Process exited with code 255.

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:
42.47 ms | 745 KiB | 4 Q