3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = array(); $t[1] = true; $t2 = array('2'=>false); $t = array_merge($t, $t2); echo count($t);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NWtqj
function name:  (null)
number of ops:  12
compiled vars:  !0 = $t, !1 = $t2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN_DIM                                               !0, 1
          2        OP_DATA                                                  <true>
    8     3        ASSIGN                                                   !1, <array>
   10     4        INIT_FCALL                                               'array_merge'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !0, $5
   12     9        COUNT                                            ~7      !0
         10        ECHO                                                     ~7
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.66 ms | 1394 KiB | 15 Q