3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; final class Bar { final public function baz() { return __METHOD__; } } var_dump((new \Foo\Bar())->baz());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mYAeE
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
          1        NEW                                              $0      'Foo%5CBar'
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $0, 'baz'
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR_NO_REF_EX                                       $2
          6        DO_FCALL                                      0          
          7      > 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/mYAeE
function name:  baz
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   'Foo%5CBar%3A%3Abaz'
    8     1*     > RETURN                                                   null

End of function baz

End of class Foo\Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.08 ms | 1394 KiB | 15 Q