3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public $inner = NULL; protected $prot = 1; private $priv = 2; } $one = new test; $two = new test; $one->inner = $two; $two->inner = $one; for($i = 100; $i > 0; $i--) { $serialized = var_export($one,true); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 12
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 12
Branch analysis from position: 20
Branch analysis from position: 12
filename:       /in/jKla0
function name:  (null)
number of ops:  21
compiled vars:  !0 = $one, !1 = $two, !2 = $i, !3 = $serialized
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $4      'test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
   10     3        NEW                                              $7      'test'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $7
   11     6        ASSIGN_OBJ                                               !0, 'inner'
          7        OP_DATA                                                  !1
   12     8        ASSIGN_OBJ                                               !1, 'inner'
          9        OP_DATA                                                  !0
   14    10        ASSIGN                                                   !2, 100
         11      > JMP                                                      ->18
   15    12    >   INIT_FCALL                                               'var_export'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $13     
         16        ASSIGN                                                   !3, $13
   14    17        PRE_DEC                                                  !2
         18    >   IS_SMALLER                                               0, !2
         19      > JMPNZ                                                    ~16, ->12
   16    20    > > RETURN                                                   1

Class test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.1 ms | 1395 KiB | 15 Q