3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { private $json; private $config; private $xmlFiles; private $modifiedElement; private $modifiedElement2; private $exchangeValue; private $exchangeValue2; private $inputFolderPath; private $outputFolderPath; private $outputFileName; public function __construct() { //$this->setXmlFiles(); //$this->createFolder(); $this->json = '{ "modifiedElement1" : "11", "modifiedElement2" : "22", "exchangeValue1" : "11", "exchangeValue2" : "333", "inputFolderPath" : "input/", "outputFolderPath" : "output/" }'; $this->config = json_decode($this->json); $this->xmlFiles = array(); $this->modifiedElement = $this->config->modifiedElement1; $this->modifiedElement2 = $this->config->modifiedElement2; $this->exchangeValue = $this->config->exchangeValue1; $this->exchangeValue2 = $this->config->exchangeValue2; $this->inputFolderPath = $this->config->inputFolderPath; $this->outputFolderPath = $this->config->outputFolderPath; $this->outputFileName = null; var_dump($this); } } $x = new test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cfBos
function name:  (null)
number of ops:  4
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   46     0  E >   NEW                                              $1      'test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
          3      > RETURN                                                   1

Class test:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cfBos
function name:  __construct
number of ops:  41
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   ASSIGN_OBJ                                               'json'
          1        OP_DATA                                                  '%7B%0A++%22modifiedElement1%22+%3A+%2211%22%2C+%0A++%22modifiedElement2%22+%3A+%2222%22%2C%0A++%22exchangeValue1%22+%3A+%2211%22%2C%0A++%22exchangeValue2%22+%3A+%22333%22%2C%0A++%22inputFolderPath%22+%3A+%22input%2F%22%2C%0A++%22outputFolderPath%22+%3A+%22output%2F%22%0A%7D'
   31     2        INIT_FCALL                                               'json_decode'
          3        FETCH_OBJ_R                                      ~2      'json'
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                         $3      
          6        ASSIGN_OBJ                                               'config'
          7        OP_DATA                                                  $3
   32     8        ASSIGN_OBJ                                               'xmlFiles'
          9        OP_DATA                                                  <array>
   33    10        FETCH_OBJ_R                                      ~6      'config'
         11        FETCH_OBJ_R                                      ~7      ~6, 'modifiedElement1'
         12        ASSIGN_OBJ                                               'modifiedElement'
         13        OP_DATA                                                  ~7
   34    14        FETCH_OBJ_R                                      ~9      'config'
         15        FETCH_OBJ_R                                      ~10     ~9, 'modifiedElement2'
         16        ASSIGN_OBJ                                               'modifiedElement2'
         17        OP_DATA                                                  ~10
   35    18        FETCH_OBJ_R                                      ~12     'config'
         19        FETCH_OBJ_R                                      ~13     ~12, 'exchangeValue1'
         20        ASSIGN_OBJ                                               'exchangeValue'
         21        OP_DATA                                                  ~13
   36    22        FETCH_OBJ_R                                      ~15     'config'
         23        FETCH_OBJ_R                                      ~16     ~15, 'exchangeValue2'
         24        ASSIGN_OBJ                                               'exchangeValue2'
         25        OP_DATA                                                  ~16
   37    26        FETCH_OBJ_R                                      ~18     'config'
         27        FETCH_OBJ_R                                      ~19     ~18, 'inputFolderPath'
         28        ASSIGN_OBJ                                               'inputFolderPath'
         29        OP_DATA                                                  ~19
   38    30        FETCH_OBJ_R                                      ~21     'config'
         31        FETCH_OBJ_R                                      ~22     ~21, 'outputFolderPath'
         32        ASSIGN_OBJ                                               'outputFolderPath'
         33        OP_DATA                                                  ~22
   39    34        ASSIGN_OBJ                                               'outputFileName'
         35        OP_DATA                                                  null
   41    36        INIT_FCALL                                               'var_dump'
         37        FETCH_THIS                                       ~24     
         38        SEND_VAL                                                 ~24
         39        DO_ICALL                                                 
   42    40      > RETURN                                                   null

End of function __construct

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.52 ms | 1019 KiB | 15 Q