3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = [ 'entity' => (object) [ 'type' => 'Article', 'nullable' => TRUE, ], ]; var_export($var); foreach($var as $x => $y) { var_export($x); var_export($y); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/9OEQN
function name:  (null)
number of ops:  18
compiled vars:  !0 = $var, !1 = $y, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   CAST                                          8  ~3      <array>
          1        INIT_ARRAY                                       ~4      ~3, 'entity'
    3     2        ASSIGN                                                   !0, ~4
   10     3        INIT_FCALL                                               'var_export'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   12     6      > FE_RESET_R                                       $7      !0, ->16
          7    > > FE_FETCH_R                                       ~8      $7, !1, ->16
          8    >   ASSIGN                                                   !2, ~8
   13     9        INIT_FCALL                                               'var_export'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
   14    12        INIT_FCALL                                               'var_export'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
   12    15      > JMP                                                      ->7
         16    >   FE_FREE                                                  $7
   15    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.28 ms | 1399 KiB | 15 Q