3v4l.org

run code in 300+ PHP versions simultaneously
<?php // index.php define('NAME', 'Yoshi'); $age = 30; ?> <!DOCTYPE html> <html> <head> <title> my PHP </title> </head> <body> <h1>Something here</h1> <div><?php echo NAME; ?></div> <div><?php echo $age; ?></div> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L6AhT
function name:  (null)
number of ops:  12
compiled vars:  !0 = $age
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'NAME'
          2        SEND_VAL                                                 'Yoshi'
          3        DO_ICALL                                                 
    5     4        ASSIGN                                                   !0, 30
    7     5        ECHO                                                     '%0A%3C%21DOCTYPE+html%3E+%0A%3Chtml%3E%0A++++%3Chead%3E%0A++++++++%3Ctitle%3E+my+PHP+%3C%2Ftitle%3E%0A++++%3C%2Fhead%3E%0A%0A++++%3Cbody%3E%0A++++++++%3Ch1%3ESomething+here%3C%2Fh1%3E%0A%0A++++++++%3Cdiv%3E'
   17     6        FETCH_CONSTANT                                   ~3      'NAME'
          7        ECHO                                                     ~3
          8        ECHO                                                     '%3C%2Fdiv%3E%0A++++++++%3Cdiv%3E'
   18     9        ECHO                                                     !0
         10        ECHO                                                     '%3C%2Fdiv%3E%0A%0A++++%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   21    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
243.15 ms | 1009 KiB | 14 Q