3v4l.org

run code in 300+ PHP versions simultaneously
<?php $newdata = array ( 'wpseo_title' => 'test1', 'wpseo_desc' => 'test2', 'wpseo_metakey' => 'test3' ); $count=0; $count2=100; foreach ($newdata as $key => $newdat) { $count++; $count2++; echo $newdat;echo $count; array_push($newdata, $count); array_push($newdata, $count2); } var_dump($newdata); // for recipe $md_array["recipe_type"][] = $newdata; //for cuisine $md_array["cuisine"][] = $newdata; array_push($md_array["cuisine"],$newdata); //var_dump($md_array["cuisine"]); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 19
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 19
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/ipBVn
function name:  (null)
number of ops:  35
compiled vars:  !0 = $newdata, !1 = $count, !2 = $count2, !3 = $newdat, !4 = $key, !5 = $md_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN                                                   !1, 0
    8     2        ASSIGN                                                   !2, 100
    9     3      > FE_RESET_R                                       $9      !0, ->19
          4    > > FE_FETCH_R                                       ~10     $9, !3, ->19
          5    >   ASSIGN                                                   !4, ~10
   10     6        PRE_INC                                                  !1
   11     7        PRE_INC                                                  !2
   12     8        ECHO                                                     !3
          9        ECHO                                                     !1
   13    10        INIT_FCALL                                               'array_push'
         11        SEND_REF                                                 !0
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
   14    14        INIT_FCALL                                               'array_push'
         15        SEND_REF                                                 !0
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
    9    18      > JMP                                                      ->4
         19    >   FE_FREE                                                  $9
   16    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                                 
   20    23        FETCH_DIM_W                                      $17     !5, 'recipe_type'
         24        ASSIGN_DIM                                               $17
         25        OP_DATA                                                  !0
   24    26        FETCH_DIM_W                                      $19     !5, 'cuisine'
         27        ASSIGN_DIM                                               $19
         28        OP_DATA                                                  !0
   25    29        INIT_FCALL                                               'array_push'
         30        FETCH_DIM_W                                      $21     !5, 'cuisine'
         31        SEND_REF                                                 $21
         32        SEND_VAR                                                 !0
         33        DO_ICALL                                                 
   28    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.27 ms | 1396 KiB | 17 Q