3v4l.org

run code in 300+ PHP versions simultaneously
<?php class version_info { private $vi; // Version Information Array public function __construct() { $this->vi = array(); } public function add($name, $filename, $doc = 0, $date, $ver) { $this->vi[$filename] = array( 'name' => $name, 'filename' => $filename, 'document' => $doc, // Include in automatic SiteCommander tech documentation 'version' => $ver, 'date' => $date ); } } /* end of class version_info */ $sc_version_info = new version_info(); $sc_version_info->add('Test', '/admin/test.php', 1, 2, 3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uniMl
function name:  (null)
number of ops:  11
compiled vars:  !0 = $sc_version_info
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'version_info'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        INIT_METHOD_CALL                                         !0, 'add'
          4        SEND_VAL_EX                                              'Test'
          5        SEND_VAL_EX                                              '%2Fadmin%2Ftest.php'
          6        SEND_VAL_EX                                              1
          7        SEND_VAL_EX                                              2
          8        SEND_VAL_EX                                              3
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Class version_info:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uniMl
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN_OBJ                                               'vi'
          1        OP_DATA                                                  <array>
    7     2      > RETURN                                                   null

End of function __construct

Function add:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uniMl
function name:  add
number of ops:  14
compiled vars:  !0 = $name, !1 = $filename, !2 = $doc, !3 = $date, !4 = $ver
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV_INIT                                        !2      0
          3        RECV                                             !3      
          4        RECV                                             !4      
   10     5        INIT_ARRAY                                       ~7      !0, 'name'
   11     6        ADD_ARRAY_ELEMENT                                ~7      !1, 'filename'
   12     7        ADD_ARRAY_ELEMENT                                ~7      !2, 'document'
   13     8        ADD_ARRAY_ELEMENT                                ~7      !4, 'version'
   14     9        ADD_ARRAY_ELEMENT                                ~7      !3, 'date'
    9    10        FETCH_OBJ_W                                      $5      'vi'
         11        ASSIGN_DIM                                               $5, !1
   14    12        OP_DATA                                                  ~7
   16    13      > RETURN                                                   null

End of function add

End of class version_info.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.59 ms | 1386 KiB | 13 Q