3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n_sal = 50000; $n_hrs = 32; $n_wks = 52; $rate = number_format(round( ($n_sal / ($n_hrs * $n_wks)) * 100) / 100,2); $week = number_format(round( ($rate * $n_hrs) * 100) / 100,2); $n = '$50,000.50'; $n2 = preg_replace('/[,$]/','',$n); echo $n2; echo PHP_EOL; echo $rate; echo PHP_EOL; echo $week;
Output for git.master, git.master_jit, rfc.property-hooks
50000.50 30.05 961.60

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