3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.74 ms | 1387 KiB | 17 Q