3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $p = 1; public static function s() { $a = new A(); $a->p(); var_dump($a->p); } private function p() { var_dump(1); } } $a = A::s();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/imhnD
function name:  (null)
number of ops:  4
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_STATIC_METHOD_CALL                                  'A', 's'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
          3      > RETURN                                                   1

Class A:
Function s:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/imhnD
function name:  s
number of ops:  10
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    9     3        INIT_METHOD_CALL                                         !0, 'p'
          4        DO_FCALL                                      0          
   10     5        INIT_FCALL                                               'var_dump'
          6        FETCH_OBJ_R                                      ~5      !0, 'p'
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                                 
   11     9      > RETURN                                                   null

End of function s

Function p:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/imhnD
function name:  p
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 1
          2        DO_ICALL                                                 
   15     3      > RETURN                                                   null

End of function p

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
200.79 ms | 943 KiB | 16 Q