3v4l.org

run code in 300+ PHP versions simultaneously
<?php $authors = array('Johnny', 'Jim', 'Jack'); $data = array(); for ($id=0; $id<10; $id++) { $data[$id] = array( 'id' => $id, 'title' => 'Title', 'source' => 'Source', 'year' => '2013', 'type' => 'Type', 'authors' => implode(', ', $authors) ); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 4
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 4
Branch analysis from position: 19
Branch analysis from position: 4
filename:       /in/qf1Zd
function name:  (null)
number of ops:  20
compiled vars:  !0 = $authors, !1 = $data, !2 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->17
    9     4    >   INIT_ARRAY                                       ~7      !2, 'id'
   10     5        ADD_ARRAY_ELEMENT                                ~7      'Title', 'title'
   11     6        ADD_ARRAY_ELEMENT                                ~7      'Source', 'source'
   12     7        ADD_ARRAY_ELEMENT                                ~7      '2013', 'year'
   13     8        ADD_ARRAY_ELEMENT                                ~7      'Type', 'type'
   14     9        INIT_FCALL                                               'implode'
         10        SEND_VAL                                                 '%2C+'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $8      
         13        ADD_ARRAY_ELEMENT                                ~7      $8, 'authors'
    8    14        ASSIGN_DIM                                               !1, !2
   14    15        OP_DATA                                                  ~7
    6    16        PRE_INC                                                  !2
         17    >   IS_SMALLER                                               !2, 10
         18      > JMPNZ                                                    ~10, ->4
   16    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.5 ms | 1395 KiB | 15 Q