3v4l.org

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

Class A:
Function c:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jXZl1
function name:  c
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   <true>
    8     1*     > RETURN                                                   null

End of function c

Function d:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jXZl1
function name:  d
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   <true>
   11     1*     > RETURN                                                   null

End of function d

Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jXZl1
function name:  __construct
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_THIS                                       ~0      
          2        FETCH_CLASS                                   0  $1      ~0
          3        FETCH_STATIC_PROP_R          global lock         ~2      'a'
          4        SEND_VAL                                                 ~2
          5        FETCH_THIS                                       ~3      
          6        FETCH_CLASS                                   0  $4      ~3
          7        FETCH_STATIC_PROP_R          unknown             ~5      'b'
          8        SEND_VAL                                                 ~5
          9        FETCH_THIS                                       ~6      
         10        FETCH_CLASS                                   0  $7      ~6
         11        INIT_STATIC_METHOD_CALL                                  $7, 'c'
         12        DO_FCALL                                      0  $8      
         13        SEND_VAR                                                 $8
         14        FETCH_THIS                                       ~9      
         15        FETCH_CLASS                                   0  $10     ~9
         16        INIT_STATIC_METHOD_CALL                                  $10, 'd'
         17        DO_FCALL                                      0  $11     
         18        SEND_VAR                                                 $11
         19        DO_ICALL                                                 
   14    20      > RETURN                                                   null

End of function __construct

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.35 ms | 1396 KiB | 15 Q