3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = ' <?php class foo { public $bar = <<<EOT bar EOT; } ?> '; $str2 = ' <?php var_dump(array(<<<EOD foobar! EOD )); ?> '; highlight_string($str, true); highlight_string($str2, true);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f9Mut
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str, !1 = $str2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%0A%3C%3Fphp%0Aclass+foo+%7B%0A++++public+%24bar+%3D+%3C%3C%3CEOT%0Abar%0A++++EOT%3B%0A%7D%0A%3F%3E%0A'
   11     1        ASSIGN                                                   !1, '%0A%3C%3Fphp%0Avar_dump%28array%28%3C%3C%3CEOD%0Afoobar%21%0AEOD%0A%29%29%3B%0A%3F%3E%0A'
   20     2        INIT_FCALL                                               'highlight_string'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                                 
   21     6        INIT_FCALL                                               'highlight_string'
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.22 ms | 1394 KiB | 15 Q