3v4l.org

run code in 300+ PHP versions simultaneously
<?php $end = array( "id" => array("value_id_1,value_id_2,value_id_3"), "title"=> array("value_title_1,value_title_2,value_title_3"), "content"=>array("value_content_1,value_content_2,value_content_3") ); $iterator = 0; while ( $iterator < 2) { $api_arr["data"][] = array( "id" => $end["id"][$iterator], "title" => $end["title"][$iterator], "content" => $end["content"][$iterator] ); $iterator ++; } print_r($api_arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
Branch analysis from position: 3
filename:       /in/1dpjp
function name:  (null)
number of ops:  22
compiled vars:  !0 = $end, !1 = $iterator, !2 = $api_arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, 0
   10     2      > JMP                                                      ->16
   13     3    >   FETCH_DIM_R                                      ~7      !0, 'id'
          4        FETCH_DIM_R                                      ~8      ~7, !1
          5        INIT_ARRAY                                       ~9      ~8, 'id'
   14     6        FETCH_DIM_R                                      ~10     !0, 'title'
          7        FETCH_DIM_R                                      ~11     ~10, !1
          8        ADD_ARRAY_ELEMENT                                ~9      ~11, 'title'
   15     9        FETCH_DIM_R                                      ~12     !0, 'content'
         10        FETCH_DIM_R                                      ~13     ~12, !1
         11        ADD_ARRAY_ELEMENT                                ~9      ~13, 'content'
   12    12        FETCH_DIM_W                                      $5      !2, 'data'
         13        ASSIGN_DIM                                               $5
   15    14        OP_DATA                                                  ~9
   16    15        PRE_INC                                                  !1
   10    16    >   IS_SMALLER                                               !1, 2
         17      > JMPNZ                                                    ~15, ->3
   19    18    >   INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.08 ms | 1395 KiB | 15 Q