3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Abc { public const TICKET_SEND_AUTO_RESPONSE = 0; public function test() { $s = <<<XML <sendautoresponder>{${self::TICKET_SEND_AUTO_RESPONSE}}</sendautoresponder> XML; return $s; } } $t = new Abc(); var_dump($t->test());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i8tMd
function name:  (null)
number of ops:  9
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $1      'Abc'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   18     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'test'
          5        DO_FCALL                                      0  $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class Abc:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i8tMd
function name:  test
number of ops:  7
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ROPE_INIT                                     3  ~3      '++++++++++++%3Csendautoresponder%3E'
          1        FETCH_R                      local               ~1      '0'
          2        ROPE_ADD                                      1  ~3      ~3, ~1
          3        ROPE_END                                      2  ~2      ~3, '%3C%2Fsendautoresponder%3E'
    9     4        ASSIGN                                                   !0, ~2
   13     5      > RETURN                                                   !0
   14     6*     > RETURN                                                   null

End of function test

End of class Abc.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.6 ms | 1395 KiB | 15 Q