3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pivot = array_fill(0, 1, ['is_primary' => false]); $groups = array_combine([User\Group::CUSTOMER], $pivot); var_dump($pivot); var_dump($groups);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WASXe
function name:  (null)
number of ops:  20
compiled vars:  !0 = $pivot, !1 = $groups
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'array_fill'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 <array>
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    5     6        INIT_FCALL                                               'array_combine'
          7        FETCH_CLASS_CONSTANT                             ~4      'User%5CGroup', 'CUSTOMER'
          8        INIT_ARRAY                                       ~5      ~4
          9        SEND_VAL                                                 ~5
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !1, $6
    6    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
    7    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.82 ms | 1395 KiB | 19 Q