3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $test1 = 1; protected $test2 = 2; private $test3 = 3; public function __construct(){} public function showVariables(){ printf("public : %d\nprotected: %d\nprivate: %d", $this->test1, $this->test2, $this->test3); } } $tst = new Test; $tst->showVariables();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jID4A
function name:  (null)
number of ops:  6
compiled vars:  !0 = $tst
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   16     3        INIT_METHOD_CALL                                         !0, 'showVariables'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

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

End of function __construct

Function showvariables:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jID4A
function name:  showVariables
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'printf'
          1        SEND_VAL                                                 'public+%3A+%25d%0Aprotected%3A+%25d%0Aprivate%3A+%25d'
          2        FETCH_OBJ_R                                      ~0      'test1'
          3        SEND_VAL                                                 ~0
          4        FETCH_OBJ_R                                      ~1      'test2'
          5        SEND_VAL                                                 ~1
          6        FETCH_OBJ_R                                      ~2      'test3'
          7        SEND_VAL                                                 ~2
          8        DO_ICALL                                                 
   12     9      > RETURN                                                   null

End of function showvariables

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.34 ms | 1395 KiB | 15 Q