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>{{constant('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/OQ9Gj
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/OQ9Gj
function name:  test
number of ops:  3
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, '++++++++++++%3Csendautoresponder%3E%7B%7Bconstant%28%27self%3A%3ATICKET_SEND_AUTO_RESPONSE%27%29%7D%7D%3C%2Fsendautoresponder%3E'
   13     1      > RETURN                                                   !0
   14     2*     > RETURN                                                   null

End of function test

End of class Abc.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.29 ms | 1394 KiB | 15 Q