3v4l.org

run code in 300+ PHP versions simultaneously
<?php $code = "A0001"; $det1 = "it something a"; $det2 = "numero uno"; $alid = "01"; $alcode = "A0001"; $aldet1 = "it something"; $aldet2 = "numero uno"; $alid2 = "01"; $$valA = ""; $$valB = ""; $$valB = $alcode . $aldet1 . $aldet2; $$valA = $code . $det1 . $det2; echo $code ." $$ ". $det1 ." $$ ". $det2 ." $$ ". $$valA ." $$\n"; echo $alcode ." ## ". $aldet1 ." ## ". $aldet2 ." ## ". $$valB ." ##\n";
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.28, 8.4.1 - 8.4.14, 8.5.0
Warning: Undefined variable $valA in /in/j4pF9 on line 15 Warning: Undefined variable $valB in /in/j4pF9 on line 16 Warning: Undefined variable $valB in /in/j4pF9 on line 18 Warning: Undefined variable $valA in /in/j4pF9 on line 19 Warning: Undefined variable $valA in /in/j4pF9 on line 22 A0001 $$ it something a $$ numero uno $$ A0001it something anumero uno $$ Warning: Undefined variable $valB in /in/j4pF9 on line 23 A0001 ## it something ## numero uno ## A0001it something anumero uno ##
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Output for 7.1.25 - 7.1.28, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Notice: Undefined variable: valA in /in/j4pF9 on line 15 Notice: Undefined variable: valB in /in/j4pF9 on line 16 Notice: Undefined variable: valB in /in/j4pF9 on line 18 Notice: Undefined variable: valA in /in/j4pF9 on line 19 Notice: Undefined variable: valA in /in/j4pF9 on line 22 A0001 $$ it something a $$ numero uno $$ A0001it something anumero uno $$ Notice: Undefined variable: valB in /in/j4pF9 on line 23 A0001 ## it something ## numero uno ## A0001it something anumero uno ##
Output for 7.3.32 - 7.3.33
A0001 $$ it something a $$ numero uno $$ A0001it something anumero uno $$ A0001 ## it something ## numero uno ## A0001it something anumero uno ##

preferences:
175.4 ms | 411 KiB | 5 Q