3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testService { public function __construct() { var_dump('constructing service instance'); } } class base { private static $service = null; public static function setService($s) { self::$service = $s; } public static function getService() { return self::$service; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fV33g
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E > > RETURN                                                   1

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

End of function __construct

End of class testService.

Class base:
Function setservice:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fV33g
function name:  setService
number of ops:  4
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   13     1        ASSIGN_STATIC_PROP                                       'service'
          2        OP_DATA                                                  !0
   14     3      > RETURN                                                   null

End of function setservice

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

End of function getservice

End of class base.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.04 ms | 1395 KiB | 15 Q