3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rate1 = 0.02; $var = 1260; $product = $var * $rate1; // two ways to format $product echo number_format( $product, 2),"\n"; echo printf("%.2f",floor($product,2));
Output for git.master, git.master_jit, rfc.property-hooks
25.20 Fatal error: Uncaught ArgumentCountError: floor() expects exactly 1 argument, 2 given in /in/K2U4a:11 Stack trace: #0 /in/K2U4a(11): floor(25.2, 2) #1 {main} thrown in /in/K2U4a on line 11
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:
38.38 ms | 401 KiB | 8 Q