3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tpl = "The side bar{l:{khalid}} s a Cheatsheet,{l:{test}} full Reference, and Help. You can also Save & Share with the Community, and {{kaitbellahs}}view patterns you{{eu mesmo}} create or favorite in My Patterns. Global #kha; print #kha; Global #main; print #main-['kha']; Global #main; print #main-['kha']; Global #main; print #main-['kha']; Global #kha1; print #1kha; Global #1kha; print #kha1; <!DOCTYPE html> <html <?php if( <?php GLOBAL #main;print #main->conf['amp']; ?> ){ print \"amp\"; } ?> lang=\" <?php GLOBAL #main;print #main->lng['lng']; ?> \"> <head> Explore results with the Tools below. Replace & List output custom results. Details lists capture groups. Explain d"; //$globals = array(); preg_replace("/if\( \<\?php GLOBAL[.*?]\;print+/im", "hhh", $tpl); $globals = array_unique(array_map("StrToLower", $globals[0])); var_dump($globals);
Output for git.master_jit, git.master
Warning: Undefined variable $globals in /in/iRoI4 on line 15 Warning: Trying to access array offset on value of type null in /in/iRoI4 on line 15 Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, null given in /in/iRoI4:15 Stack trace: #0 /in/iRoI4(15): array_map('StrToLower', NULL) #1 {main} thrown in /in/iRoI4 on line 15
Process exited with code 255.
Output for rfc.property-hooks
Warning: Undefined variable $globals in /in/iRoI4 on line 15 Warning: Trying to access array offset on null in /in/iRoI4 on line 15 Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, null given in /in/iRoI4:15 Stack trace: #0 /in/iRoI4(15): array_map('StrToLower', NULL) #1 {main} thrown in /in/iRoI4 on line 15
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:
60.63 ms | 401 KiB | 8 Q