3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Fubar { private $obj; function __construct($timezone, $locale, $datetime){ $this->obj = \IntlCalendar::createInstance($timezone, $locale); $this->obj->setTime($datetime); var_dump($this->obj); } } $x = new Fubar("Europe/Rome", "it_IT", microtime(true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pcImP
function name:  (null)
number of ops:  10
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'Fubar'
          1        SEND_VAL_EX                                              'Europe%2FRome'
          2        SEND_VAL_EX                                              'it_IT'
          3        INIT_FCALL                                               'microtime'
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $2      
          6        SEND_VAR_NO_REF_EX                                       $2
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $1
          9      > RETURN                                                   1

Class Fubar:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pcImP
function name:  __construct
number of ops:  18
compiled vars:  !0 = $timezone, !1 = $locale, !2 = $datetime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    8     3        INIT_STATIC_METHOD_CALL                                  'IntlCalendar', 'createInstance'
          4        SEND_VAR_EX                                              !0
          5        SEND_VAR_EX                                              !1
          6        DO_FCALL                                      0  $4      
          7        ASSIGN_OBJ                                               'obj'
          8        OP_DATA                                                  $4
    9     9        FETCH_OBJ_R                                      ~5      'obj'
         10        INIT_METHOD_CALL                                         ~5, 'setTime'
         11        SEND_VAR_EX                                              !2
         12        DO_FCALL                                      0          
   10    13        INIT_FCALL                                               'var_dump'
         14        FETCH_OBJ_R                                      ~7      'obj'
         15        SEND_VAL                                                 ~7
         16        DO_ICALL                                                 
   11    17      > RETURN                                                   null

End of function __construct

End of class Fubar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.26 ms | 1012 KiB | 15 Q