3v4l.org

run code in 300+ PHP versions simultaneously
<?php function save($args) { $args = $args + array( 'fID' => 0, 'fOnstateID' => 0, 'maxWidth' => 0, 'maxHeight' => 0, 'constrainImage' => 0, 'linkType' => 0, 'externalLink' => '', 'internalLinkCID' => 0, ); var_dump($args); } save(array()); save(null);
Output for git.master, git.master_jit, rfc.property-hooks
array(8) { ["fID"]=> int(0) ["fOnstateID"]=> int(0) ["maxWidth"]=> int(0) ["maxHeight"]=> int(0) ["constrainImage"]=> int(0) ["linkType"]=> int(0) ["externalLink"]=> string(0) "" ["internalLinkCID"]=> int(0) } Fatal error: Uncaught TypeError: Unsupported operand types: null + array in /in/DM324:5 Stack trace: #0 /in/DM324(19): save(NULL) #1 {main} thrown in /in/DM324 on line 5
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:
57.4 ms | 401 KiB | 8 Q