3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array ( 'prd' => array ( 0 => '1', 1 => '2', 2 => '3', 3 => '4', 4 => '5', 5 => '6', 6 => '7', 7 => '8', ), 'price' => array ( 0 => 'a', 1 => 'b', 2 => 'c', 3 => 'd', 4 => 'e', 5 => 'f', 6 => 'g', 7 => 'h', ) ); for ($x = 0; $x< count($data['prd']); $x++) { echo $data['prd'][$x] . " costs " . $data['price'] . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
filename:       /in/V07FZ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $data, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   26     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->11
   27     3    >   FETCH_DIM_R                                      ~4      !0, 'prd'
          4        FETCH_DIM_R                                      ~5      ~4, !1
          5        CONCAT                                           ~6      ~5, '+costs+'
          6        FETCH_DIM_R                                      ~7      !0, 'price'
          7        CONCAT                                           ~8      ~6, ~7
          8        CONCAT                                           ~9      ~8, '%0A'
          9        ECHO                                                     ~9
   26    10        PRE_INC                                                  !1
         11    >   FETCH_DIM_R                                      ~11     !0, 'prd'
         12        COUNT                                            ~12     ~11
         13        IS_SMALLER                                               !1, ~12
         14      > JMPNZ                                                    ~13, ->3
   28    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.88 ms | 1393 KiB | 13 Q