3v4l.org

run code in 300+ PHP versions simultaneously
<?php $orderLines[] = ['1' => 'ett', '2' => 'två']; $orderLines[] = ['1' => 'ett', '2' => 'två']; foreach ($orderLines as $orderLine) { echo implode(',', json_encode($orderLine)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/3aWqa
function name:  (null)
number of ops:  17
compiled vars:  !0 = $orderLines, !1 = $orderLine
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0
          1        OP_DATA                                                  <array>
    4     2        ASSIGN_DIM                                               !0
          3        OP_DATA                                                  <array>
    6     4      > FE_RESET_R                                       $4      !0, ->15
          5    > > FE_FETCH_R                                               $4, !1, ->15
    7     6    >   INIT_FCALL                                               'implode'
          7        SEND_VAL                                                 '%2C'
          8        INIT_FCALL                                               'json_encode'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                         $6      
         13        ECHO                                                     $6
    6    14      > JMP                                                      ->5
         15    >   FE_FREE                                                  $4
    8    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.58 ms | 1395 KiB | 17 Q