3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a["x"] = "bb"; $a["x"][] = "cc"; print_r($a); print_r("A"); print_r(empty([])); print_r("A"); print_r(empty(array())); print_r("A"); print_r(empty($a)); print_r(array_merge([1,[2,3]],[1])); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5fPDR
function name:  (null)
number of ops:  36
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0, 'x'
          2        OP_DATA                                                  'bb'
    5     3        FETCH_DIM_W                                      $3      !0, 'x'
          4        ASSIGN_DIM                                               $3
          5        OP_DATA                                                  'cc'
    6     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'print_r'
         10        SEND_VAL                                                 'A'
         11        DO_ICALL                                                 
    8    12        INIT_FCALL                                               'print_r'
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                                 
    9    15        INIT_FCALL                                               'print_r'
         16        SEND_VAL                                                 'A'
         17        DO_ICALL                                                 
   10    18        INIT_FCALL                                               'print_r'
         19        SEND_VAL                                                 <true>
         20        DO_ICALL                                                 
   11    21        INIT_FCALL                                               'print_r'
         22        SEND_VAL                                                 'A'
         23        DO_ICALL                                                 
   12    24        INIT_FCALL                                               'print_r'
         25        ISSET_ISEMPTY_CV                                 ~11     !0
         26        SEND_VAL                                                 ~11
         27        DO_ICALL                                                 
   13    28        INIT_FCALL                                               'print_r'
         29        INIT_FCALL                                               'array_merge'
         30        SEND_VAL                                                 <array>
         31        SEND_VAL                                                 <array>
         32        DO_ICALL                                         $13     
         33        SEND_VAR                                                 $13
         34        DO_ICALL                                                 
   14    35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.94 ms | 1396 KiB | 17 Q