3v4l.org

run code in 300+ PHP versions simultaneously
//<?php //Enter your code here, enjoy! $array = array("1" => "PHP code tester Sandbox Online", "fouuuuu" => "bar", 5 , 5 => 89009, "case" => "Random Stuff", "PHP Version" => phpversion() ); foreach( $array as $key => $value ){ echo $key."\t=>\t".$value."\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/rIVgN
function name:  (null)
number of ops:  20
compiled vars:  !0 = $array, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%2F%2F'
    5     1        INIT_ARRAY                                       ~3      'PHP+code+tester+Sandbox+Online', 1
    6     2        ADD_ARRAY_ELEMENT                                ~3      'bar', 'fouuuuu'
          3        ADD_ARRAY_ELEMENT                                ~3      5
          4        ADD_ARRAY_ELEMENT                                ~3      89009, 5
    7     5        ADD_ARRAY_ELEMENT                                ~3      'Random+Stuff', 'case'
    8     6        INIT_FCALL                                               'phpversion'
          7        DO_ICALL                                         $4      
          8        ADD_ARRAY_ELEMENT                                ~3      $4, 'PHP+Version'
    5     9        ASSIGN                                                   !0, ~3
   11    10      > FE_RESET_R                                       $6      !0, ->18
         11    > > FE_FETCH_R                                       ~7      $6, !1, ->18
         12    >   ASSIGN                                                   !2, ~7
   12    13        CONCAT                                           ~9      !2, '%09%3D%3E%09'
         14        CONCAT                                           ~10     ~9, !1
         15        CONCAT                                           ~11     ~10, '%0A'
         16        ECHO                                                     ~11
   11    17      > JMP                                                      ->11
         18    >   FE_FREE                                                  $6
   14    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.69 ms | 1395 KiB | 15 Q