3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_array = array(); $my_array['id'] = 4127 ; $my_array['nick'] = 'Jonas'; $my_array['dte79855545'] = 5; foreach ($my_array as $key => $value) { if (substr ( $key , 0 , 3 )=='dte') { $the_dte_id = substr ( $key , 3); $the_dte_value = $value; } } echo "The dte id is:".$the_dte_id." and the value is ".$the_dte_value; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 24
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 24
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 23
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 23
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/iJoRs
function name:  (null)
number of ops:  30
compiled vars:  !0 = $my_array, !1 = $value, !2 = $key, !3 = $the_dte_id, !4 = $the_dte_value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN_DIM                                               !0, 'id'
          2        OP_DATA                                                  4127
    6     3        ASSIGN_DIM                                               !0, 'nick'
          4        OP_DATA                                                  'Jonas'
    7     5        ASSIGN_DIM                                               !0, 'dte79855545'
          6        OP_DATA                                                  5
   11     7      > FE_RESET_R                                       $9      !0, ->24
          8    > > FE_FETCH_R                                       ~10     $9, !1, ->24
          9    >   ASSIGN                                                   !2, ~10
   13    10        INIT_FCALL                                               'substr'
         11        SEND_VAR                                                 !2
         12        SEND_VAL                                                 0
         13        SEND_VAL                                                 3
         14        DO_ICALL                                         $12     
         15        IS_EQUAL                                                 $12, 'dte'
         16      > JMPZ                                                     ~13, ->23
   15    17    >   INIT_FCALL                                               'substr'
         18        SEND_VAR                                                 !2
         19        SEND_VAL                                                 3
         20        DO_ICALL                                         $14     
         21        ASSIGN                                                   !3, $14
   16    22        ASSIGN                                                   !4, !1
   11    23    > > JMP                                                      ->8
         24    >   FE_FREE                                                  $9
   20    25        CONCAT                                           ~17     'The+dte+id+is%3A', !3
         26        CONCAT                                           ~18     ~17, '+and+the+value+is+'
         27        CONCAT                                           ~19     ~18, !4
         28        ECHO                                                     ~19
   23    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.32 ms | 1388 KiB | 15 Q