3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { private $variable = "value"; protected $prot = "protected value"; } $object = new test(); var_export(array(new test()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ECNjn
function name:  (null)
number of ops:  10
compiled vars:  !0 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        INIT_FCALL                                               'var_export'
          4        NEW                                              $4      'test'
          5        DO_FCALL                                      0          
          6        INIT_ARRAY                                       ~6      $4
          7        SEND_VAL                                                 ~6
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.54 ms | 1385 KiB | 15 Q