3v4l.org

run code in 300+ PHP versions simultaneously
<?php $net_pay = 8345.24; $net_pay = trim($emp->net_pay, ' '); $net_pay = mb_substr($net_pay, 0, 11); $net_pay = str_replace(',', '', $net_pay); $net_pay = number_format($net_pay); $h = str_pad($net_pay, 11, $extraVal, STR_PAD_LEFT); print $h;
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $emp in /in/jFl5u on line 6 Warning: Attempt to read property "net_pay" on null in /in/jFl5u on line 6 Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /in/jFl5u on line 6 Fatal error: Uncaught TypeError: number_format(): Argument #1 ($num) must be of type float, string given in /in/jFl5u:9 Stack trace: #0 /in/jFl5u(9): number_format('') #1 {main} thrown in /in/jFl5u on line 9
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:
39.12 ms | 402 KiB | 8 Q