3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = new stdClass(); $result->GBP = "10.00"; $result->USD = "12.00"; foreach ($result as $currency => $value) { $currencyWithTax = $value .' + TAX'; $result->total[$currency] = $currencyWithTax; } print_r($result);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Array to string conversion in /in/fVjeN on line 9 stdClass Object ( [GBP] => 10.00 [USD] => 12.00 [total] => Array ( [GBP] => 10.00 + TAX [USD] => 12.00 + TAX [total] => Array + TAX ) )

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:
151.22 ms | 406 KiB | 5 Q