3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $test = array( "key" => 1, "key" => 2 ); echo "Length of array:" . count($test) . "\n"; echo "Items in array:\n"; foreach($test as $key => $value) { echo "$key => $value\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/IDENv
function name:  (null)
number of ops:  17
compiled vars:  !0 = $test, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    9     1        COUNT                                            ~4      !0
          2        CONCAT                                           ~5      'Length+of+array%3A', ~4
          3        CONCAT                                           ~6      ~5, '%0A'
          4        ECHO                                                     ~6
   11     5        ECHO                                                     'Items+in+array%3A%0A'
   12     6      > FE_RESET_R                                       $7      !0, ->15
          7    > > FE_FETCH_R                                       ~8      $7, !1, ->15
          8    >   ASSIGN                                                   !2, ~8
   13     9        ROPE_INIT                                     4  ~11     !2
         10        ROPE_ADD                                      1  ~11     ~11, '+%3D%3E+'
         11        ROPE_ADD                                      2  ~11     ~11, !1
         12        ROPE_END                                      3  ~10     ~11, '%0A'
         13        ECHO                                                     ~10
   12    14      > JMP                                                      ->7
         15    >   FE_FREE                                                  $7
   14    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.4 ms | 1394 KiB | 13 Q