3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'CORN FUTURE May14'; $data = preg_split('\s', $s); array_pop($data); $name = trim(implode(' ', $data)); echo $name;
Output for git.master, git.master_jit
Warning: preg_split(): Delimiter must not be alphanumeric, backslash, or NUL in /in/fvWmX on line 4 Fatal error: Uncaught TypeError: array_pop(): Argument #1 ($array) must be of type array, bool given in /in/fvWmX:5 Stack trace: #0 /in/fvWmX(5): array_pop(false) #1 {main} thrown in /in/fvWmX on line 5
Process exited with code 255.
Output for rfc.property-hooks
Warning: preg_split(): Delimiter must not be alphanumeric, backslash, or NUL in /in/fvWmX on line 4 Fatal error: Uncaught TypeError: array_pop(): Argument #1 ($array) must be of type array, false given in /in/fvWmX:5 Stack trace: #0 /in/fvWmX(5): array_pop(false) #1 {main} thrown in /in/fvWmX 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:
42.84 ms | 401 KiB | 8 Q