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; array_push($newdata, $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 = 13
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 13
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/QKNYB
function name:  (null)
number of ops:  29
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, ->13
          3    > > FE_FETCH_R                                       ~8      $7, !2, ->13
          4    >   ASSIGN                                                   !3, ~8
    9     5        PRE_INC                                                  !1
   10     6        ECHO                                                     !2
          7        ECHO                                                     !1
   11     8        INIT_FCALL                                               'array_push'
          9        SEND_REF                                                 !0
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
    8    12      > JMP                                                      ->3
         13    >   FE_FREE                                                  $7
   13    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
   17    17        FETCH_DIM_W                                      $13     !4, 'recipe_type'
         18        ASSIGN_DIM                                               $13
         19        OP_DATA                                                  !0
   21    20        FETCH_DIM_W                                      $15     !4, 'cuisine'
         21        ASSIGN_DIM                                               $15
         22        OP_DATA                                                  !0
   22    23        INIT_FCALL                                               'array_push'
         24        FETCH_DIM_W                                      $17     !4, 'cuisine'
         25        SEND_REF                                                 $17
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                                 
   25    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.18 ms | 1401 KiB | 17 Q