3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function a() { return <<<FOO Multiline string FOO; } public function b() { return <<<FOO Multiline string FOO; } public function c() { return <<<FOO Multiline string FOO; } } $foo = new Foo(); var_dump($foo->a()); var_dump($foo->b()); var_dump($foo->c());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lTXHQ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   31     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'a'
          5        DO_FCALL                                      0  $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                                 
   32     8        INIT_FCALL                                               'var_dump'
          9        INIT_METHOD_CALL                                         !0, 'b'
         10        DO_FCALL                                      0  $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                                 
   33    13        INIT_FCALL                                               'var_dump'
         14        INIT_METHOD_CALL                                         !0, 'c'
         15        DO_FCALL                                      0  $8      
         16        SEND_VAR                                                 $8
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Class Foo:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lTXHQ
function name:  a
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > RETURN                                                   'Multiline%0Astring'
   11     1*     > RETURN                                                   null

End of function a

Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lTXHQ
function name:  b
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E > > RETURN                                                   'Multiline%0Astring'
   19     1*     > RETURN                                                   null

End of function b

Function c:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lTXHQ
function name:  c
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E > > RETURN                                                   'Multiline%0Astring'
   27     1*     > RETURN                                                   null

End of function c

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.41 ms | 1011 KiB | 14 Q