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. RegExr v3 was created by gskinner.com, and is proudly hosted by Media Temple <?php Global $kha; print $kha; ?> <?php Global $main; print $main-['kha']; ?><?php Global $kha1; print $1kha; ?><?php Global $1kha; print $kha1; ?> <!DOCTYPE html> <html <?php if(#main->conf['amp'] ){ print \"amp\"; } ?> <?php if(#main->conf['amp']=<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print \"amp\"; } ?>lang=\" <?php if(#main->conf['amp']==<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print \"amp\"; } ?>lang=\" <?php if(#main->conf['amp']!=<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print \"amp\"; } ?>lang=\" <?php if(#main->conf['amp']<<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print \"amp\"; } ?>lang=\" <?php if(#main->conf['amp']><?php GLOBAL #main;print #main->conf['kha']; ?> ){ print \"amp\"; } ?>lang=\" <?php GLOBAL #main;print #main->lng['lng']; ?> \"> <!DOCTYPE html> <html <?php if( $main->conf['amp'] ){ print \"amp\"; } ?> lang=\" <?php GLOBAL $main;print $main->lng['lng']; ?> \"> <head> <meta charset=\"utf-8\"/> Explore results with the Tools below. Replace & List output custom results. Details lists capture groups. Explain d"; //$globals = array(); $tpl = preg_replace("/if\( \<\?php GLOBAL.*?\;print (.*?); \?\>+/im", "if(\$1", $tpl); preg_match_all("/global \$(.*?);/im", $tpl, $globals); print "(globals:".var_dump($globals).")"; //$globals = array_unique(array_map("StrToLower", $globals[0])); var_dump($tpl);
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Warning: Undefined variable $kha in /in/KSBVV on line 4 Warning: Undefined variable $kha in /in/KSBVV on line 4 Warning: Undefined variable $main in /in/KSBVV on line 5 Warning: Undefined variable $main in /in/KSBVV on line 5 Warning: Undefined variable $kha1 in /in/KSBVV on line 5 Warning: Undefined variable $kha1 in /in/KSBVV on line 5 Warning: Undefined variable $main in /in/KSBVV on line 14 Warning: Attempt to read property "conf" on null in /in/KSBVV on line 14 Warning: Undefined variable $main in /in/KSBVV on line 14 Warning: Undefined variable $main in /in/KSBVV on line 14 Warning: Attempt to read property "lng" on null in /in/KSBVV on line 14 array(2) { [0]=> array(0) { } [1]=> array(0) { } } (globals:)string(1306) "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. RegExr v3 was created by gskinner.com, and is proudly hosted by Media Temple <?php Global ; print ; ?> <?php Global ; print -['kha']; ?><?php Global ; print $1kha; ?><?php Global $1kha; print ; ?> <!DOCTYPE html> <html <?php if(#main->conf['amp'] ){ print "amp"; } ?> <?php if(#main->conf['amp']=<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php if(#main->conf['amp']==<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php if(#main->conf['amp']!=<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php if(#main->conf['amp']<<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php if(#main->conf['amp']><?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php GLOBAL #main;print #main->lng['lng']; ?> "> <!DOCTYPE html> <html <?php if( ['amp'] ){ print "amp"; } ?> lang=" <?php GLOBAL ;print ['lng']; ?> "> <head> <meta charset="utf-8"/> Explore results with the Tools below. Replace & List output custom results. Details lists capture groups. Explain d"
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Warning: Undefined variable $kha in /in/KSBVV on line 4 Warning: Undefined variable $kha in /in/KSBVV on line 4 Warning: Undefined variable $main in /in/KSBVV on line 5 Warning: Undefined variable $main in /in/KSBVV on line 5 Warning: Undefined variable $kha1 in /in/KSBVV on line 5 Warning: Undefined variable $kha1 in /in/KSBVV on line 5 Warning: Undefined variable $main in /in/KSBVV on line 14 Warning: Attempt to read property "conf" on null in /in/KSBVV on line 14 Warning: Undefined variable $main in /in/KSBVV on line 14 Warning: Undefined variable $main in /in/KSBVV on line 14 Warning: Attempt to read property "lng" on null in /in/KSBVV on line 14 array(2) { [0]=> array(0) { } [1]=> array(0) { } } (globals:)string(1306) "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. RegExr v3 was created by gskinner.com, and is proudly hosted by Media Temple <?php Global ; print ; ?> <?php Global ; print -['kha']; ?><?php Global ; print $1kha; ?><?php Global $1kha; print ; ?> <!DOCTYPE html> <html <?php if(#main->conf['amp'] ){ print "amp"; } ?> <?php if(#main->conf['amp']=<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php if(#main->conf['amp']==<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php if(#main->conf['amp']!=<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php if(#main->conf['amp']<<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php if(#main->conf['amp']><?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php GLOBAL #main;print #main->lng['lng']; ?> "> <!DOCTYPE html> <html <?php if( ['amp'] ){ print "amp"; } ?> lang=" <?php GLOBAL ;print ['lng']; ?> "> <head> <meta charset="utf-8"/> Explore results with the Tools below. Replace & List output custom results. Details lists capture groups. Explain d"
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Notice: Undefined variable: kha in /in/KSBVV on line 4 Notice: Undefined variable: kha in /in/KSBVV on line 4 Notice: Undefined variable: main in /in/KSBVV on line 5 Notice: Undefined variable: main in /in/KSBVV on line 5 Notice: Undefined variable: kha1 in /in/KSBVV on line 5 Notice: Undefined variable: kha1 in /in/KSBVV on line 5 Notice: Undefined variable: main in /in/KSBVV on line 14 Notice: Trying to get property 'conf' of non-object in /in/KSBVV on line 14 Notice: Undefined variable: main in /in/KSBVV on line 14 Notice: Undefined variable: main in /in/KSBVV on line 14 Notice: Trying to get property 'lng' of non-object in /in/KSBVV on line 14 array(2) { [0]=> array(0) { } [1]=> array(0) { } } (globals:)string(1306) "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. RegExr v3 was created by gskinner.com, and is proudly hosted by Media Temple <?php Global ; print ; ?> <?php Global ; print -['kha']; ?><?php Global ; print $1kha; ?><?php Global $1kha; print ; ?> <!DOCTYPE html> <html <?php if(#main->conf['amp'] ){ print "amp"; } ?> <?php if(#main->conf['amp']=<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php if(#main->conf['amp']==<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php if(#main->conf['amp']!=<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php if(#main->conf['amp']<<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php if(#main->conf['amp']><?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php GLOBAL #main;print #main->lng['lng']; ?> "> <!DOCTYPE html> <html <?php if( ['amp'] ){ print "amp"; } ?> lang=" <?php GLOBAL ;print ['lng']; ?> "> <head> <meta charset="utf-8"/> Explore results with the Tools below. Replace & List output custom results. Details lists capture groups. Explain d"
Output for 7.3.32 - 7.3.33
array(2) { [0]=> array(0) { } [1]=> array(0) { } } (globals:)string(1306) "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. RegExr v3 was created by gskinner.com, and is proudly hosted by Media Temple <?php Global ; print ; ?> <?php Global ; print -['kha']; ?><?php Global ; print $1kha; ?><?php Global $1kha; print ; ?> <!DOCTYPE html> <html <?php if(#main->conf['amp'] ){ print "amp"; } ?> <?php if(#main->conf['amp']=<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php if(#main->conf['amp']==<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php if(#main->conf['amp']!=<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php if(#main->conf['amp']<<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php if(#main->conf['amp']><?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php GLOBAL #main;print #main->lng['lng']; ?> "> <!DOCTYPE html> <html <?php if( ['amp'] ){ print "amp"; } ?> lang=" <?php GLOBAL ;print ['lng']; ?> "> <head> <meta charset="utf-8"/> Explore results with the Tools below. Replace & List output custom results. Details lists capture groups. Explain d"
Output for 7.1.0 - 7.1.33
Notice: Undefined variable: kha in /in/KSBVV on line 4 Notice: Undefined variable: kha in /in/KSBVV on line 4 Notice: Undefined variable: main in /in/KSBVV on line 5 Notice: Undefined variable: main in /in/KSBVV on line 5 Notice: Undefined variable: kha1 in /in/KSBVV on line 5 Notice: Undefined variable: kha1 in /in/KSBVV on line 5 Notice: Undefined variable: main in /in/KSBVV on line 14 Notice: Trying to get property of non-object in /in/KSBVV on line 14 Notice: Undefined variable: main in /in/KSBVV on line 14 Notice: Undefined variable: main in /in/KSBVV on line 14 Notice: Trying to get property of non-object in /in/KSBVV on line 14 array(2) { [0]=> array(0) { } [1]=> array(0) { } } (globals:)string(1306) "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. RegExr v3 was created by gskinner.com, and is proudly hosted by Media Temple <?php Global ; print ; ?> <?php Global ; print -['kha']; ?><?php Global ; print $1kha; ?><?php Global $1kha; print ; ?> <!DOCTYPE html> <html <?php if(#main->conf['amp'] ){ print "amp"; } ?> <?php if(#main->conf['amp']=<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php if(#main->conf['amp']==<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php if(#main->conf['amp']!=<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php if(#main->conf['amp']<<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php if(#main->conf['amp']><?php GLOBAL #main;print #main->conf['kha']; ?> ){ print "amp"; } ?>lang=" <?php GLOBAL #main;print #main->lng['lng']; ?> "> <!DOCTYPE html> <html <?php if( ['amp'] ){ print "amp"; } ?> lang=" <?php GLOBAL ;print ['lng']; ?> "> <head> <meta charset="utf-8"/> Explore results with the Tools below. Replace & List output custom results. Details lists capture groups. Explain d"

preferences:
175.38 ms | 409 KiB | 203 Q