3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace Foo; class Bar { public function baz() { return __METHOD__; } } $b = new Bar; echo $b->baz();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8AsNS
function name:  (null)
number of ops:  7
compiled vars:  !0 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   NEW                                                  $1      'Foo%5CBar'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   14     3        INIT_METHOD_CALL                                             !0, 'baz'
          4        DO_FCALL                                          0  $4      
          5        ECHO                                                         $4
          6      > RETURN                                                       1

Class Foo\Bar:
Function baz:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8AsNS
function name:  baz
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                       'Foo%5CBar%3A%3Abaz'
   10     1*     > RETURN                                                       null

End of function baz

End of class Foo\Bar.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.54 ms | 2640 KiB | 13 Q