3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pizza = "piece1 piece2 piece3 piece4 piece5 piece6"; $pieces = explode("", $pizza); var_dump($pieces);
Output for git.master_jit, git.master
Fatal error: Uncaught ValueError: explode(): Argument #1 ($separator) must not be empty in /in/N1eUT:4 Stack trace: #0 /in/N1eUT(4): explode('', 'piece1 piece2 p...') #1 {main} thrown in /in/N1eUT on line 4
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Uncaught ValueError: explode(): Argument #1 ($separator) cannot be empty in /in/N1eUT:4 Stack trace: #0 /in/N1eUT(4): explode('', 'piece1 piece2 p...') #1 {main} thrown in /in/N1eUT on line 4
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:
123.05 ms | 406 KiB | 5 Q