3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public static $progress = 5; public function scrapphone(){ self::$progress = 11; } public static function status(){ return self::$progress; } } $x = new foo; $x->scrapphone(); echo foo::status();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pTZ3V
function name:  (null)
number of ops:  9
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   NEW                                              $1      'foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   22     3        INIT_METHOD_CALL                                         !0, 'scrapphone'
          4        DO_FCALL                                      0          
   24     5        INIT_STATIC_METHOD_CALL                                  'foo', 'status'
          6        DO_FCALL                                      0  $5      
          7        ECHO                                                     $5
          8      > RETURN                                                   1

Class foo:
Function scrapphone:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pTZ3V
function name:  scrapphone
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN_STATIC_PROP                                       'progress'
          1        OP_DATA                                                  11
   12     2      > RETURN                                                   null

End of function scrapphone

Function status:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pTZ3V
function name:  status
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'progress'
          1      > RETURN                                                   ~0
   18     2*     > RETURN                                                   null

End of function status

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.09 ms | 1394 KiB | 13 Q