3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('SITE_URL', 'http://example.com'); $str = '<p class="card mb-4 shadow-sm"><img src="<?php echo SITE_URL; ?>/assets/images/blog/php.png" alt="php" title="php"></p>'; echo eval('?>'.$str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EEB54
function name:  (null)
number of ops:  9
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'SITE_URL'
          2        SEND_VAL                                                 'http%3A%2F%2Fexample.com'
          3        DO_ICALL                                                 
    4     4        ASSIGN                                                   !0, '%3Cp+class%3D%22card+mb-4+shadow-sm%22%3E%3Cimg+src%3D%22%3C%3Fphp+echo+SITE_URL%3B+%3F%3E%2Fassets%2Fimages%2Fblog%2Fphp.png%22+alt%3D%22php%22+title%3D%22php%22%3E%3C%2Fp%3E'
    6     5        CONCAT                                           ~3      '%3F%3E', !0
          6        INCLUDE_OR_EVAL                                  $4      ~3, EVAL
          7        ECHO                                                     $4
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.5 ms | 998 KiB | 14 Q