3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Enter your code here, enjoy! $array = array(); $array[] = "usernaam1"; $array[] = "usernaam2"; $array[] = "usernaam3"; $array[] = "usernaam4"; foreach( $array as $key => $usernaam ){ $get_transient = TRUE; if ( false === $get_transient ) { // It isn't there, so do something. echo sprintf( "Fetching data for %s\n", $usernaam ); $array = array( "0" => $usernaam ); break; } echo sprintf( "Doing nothing for %s\n", $usernaam ); echo $key."\t=>\t".$value."\n"; } var_dump($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 33
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 33
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 23
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 33
Branch analysis from position: 33
filename:       /in/MvTBU
function name:  (null)
number of ops:  38
compiled vars:  !0 = $array, !1 = $usernaam, !2 = $key, !3 = $get_transient, !4 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN_DIM                                               !0
          2        OP_DATA                                                  'usernaam1'
    6     3        ASSIGN_DIM                                               !0
          4        OP_DATA                                                  'usernaam2'
    7     5        ASSIGN_DIM                                               !0
          6        OP_DATA                                                  'usernaam3'
    8     7        ASSIGN_DIM                                               !0
          8        OP_DATA                                                  'usernaam4'
   10     9      > FE_RESET_R                                       $10     !0, ->33
         10    > > FE_FETCH_R                                       ~11     $10, !1, ->33
         11    >   ASSIGN                                                   !2, ~11
   12    12        ASSIGN                                                   !3, <true>
   14    13        TYPE_CHECK                                    4          !3
         14      > JMPZ                                                     ~14, ->23
   16    15    >   INIT_FCALL                                               'sprintf'
         16        SEND_VAL                                                 'Fetching+data+for+%25s%0A'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $15     
         19        ECHO                                                     $15
   17    20        INIT_ARRAY                                       ~16     !1, 0
         21        ASSIGN                                                   !0, ~16
   18    22      > JMP                                                      ->33
   22    23    >   INIT_FCALL                                               'sprintf'
         24        SEND_VAL                                                 'Doing+nothing+for+%25s%0A'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                         $18     
         27        ECHO                                                     $18
   23    28        CONCAT                                           ~19     !2, '%09%3D%3E%09'
         29        CONCAT                                           ~20     ~19, !4
         30        CONCAT                                           ~21     ~20, '%0A'
         31        ECHO                                                     ~21
   10    32      > JMP                                                      ->10
         33    >   FE_FREE                                                  $10
   25    34        INIT_FCALL                                               'var_dump'
         35        SEND_VAR                                                 !0
         36        DO_ICALL                                                 
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.63 ms | 1392 KiB | 17 Q