3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ public function Data(){ return B::Date(); } } $systA=new A(); class B{ private static $datetimezone; public static function SetTimeZone($a){ self::$datetimezone=$a; } public static function Date(){ return self::$datetimezone; } } B::SetTimeZone('Europe/Paris'); $systA->Data();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W0ndg
function name:  (null)
number of ops:  9
compiled vars:  !0 = $systA
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $1      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   21     3        INIT_STATIC_METHOD_CALL                                  'B', 'SetTimeZone'
          4        SEND_VAL                                                 'Europe%2FParis'
          5        DO_FCALL                                      0          
   22     6        INIT_METHOD_CALL                                         !0, 'Data'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class A:
Function data:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W0ndg
function name:  Data
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_STATIC_METHOD_CALL                                  'B', 'Date'
          1        DO_FCALL                                      0  $0      
          2      > RETURN                                                   $0
    5     3*     > RETURN                                                   null

End of function data

End of class A.

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

End of function settimezone

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

End of function date

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.25 ms | 1395 KiB | 13 Q