3v4l.org

run code in 300+ PHP versions simultaneously
<?php version_compare(PHP_VERSION, '7.1', '<') && die; class MyClass extends ArrayIterator { public function __debugInfo() { return $this->storage; } } $x = new MyClass([1]); var_dump($x);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PBdjk
function name:  (null)
number of ops:  16
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'version_compare'
          1        SEND_VAL                                                 '8.0.0'
          2        SEND_VAL                                                 '7.1'
          3        SEND_VAL                                                 '%3C'
          4        DO_ICALL                                         $1      
          5      > JMPZ_EX                                          ~2      $1, ->8
          6    > > EXIT                                                     
          7*       BOOL                                             ~2      <true>
   10     8    >   NEW                                              $3      'MyClass'
          9        SEND_VAL_EX                                              <array>
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !0, $3
   12    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Class MyClass:
Function __debuginfo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PBdjk
function name:  __debugInfo
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_OBJ_R                                      ~0      'storage'
          1      > RETURN                                                   ~0
    8     2*     > RETURN                                                   null

End of function __debuginfo

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.54 ms | 1395 KiB | 17 Q