3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo\Bar { class One {} class Two extends One { public function baz($x = parent::class) { var_dump($x); } } (new Two)->baz(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UAAdl
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $0      'Foo%5CBar%5CTwo'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'baz'
          3        DO_FCALL                                      0          
   10     4      > RETURN                                                   1

Class Foo\Bar\One: [no user functions]
Class Foo\Bar\Two:
Function baz:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UAAdl
function name:  baz
number of ops:  5
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                        !0      'Foo%5CBar%5COne'
    6     1        INIT_NS_FCALL_BY_NAME                                    'Foo%5CBar%5Cvar_dump'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
    7     4      > RETURN                                                   null

End of function baz

End of class Foo\Bar\Two.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.78 ms | 1398 KiB | 15 Q