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'][$x] . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
Branch analysis from position: 3
filename:       /in/uCqHo
function name:  (null)
number of ops:  17
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                                                      ->12
   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        FETCH_DIM_R                                      ~8      ~7, !1
          8        CONCAT                                           ~9      ~6, ~8
          9        CONCAT                                           ~10     ~9, '%0A'
         10        ECHO                                                     ~10
   26    11        PRE_INC                                                  !1
         12    >   FETCH_DIM_R                                      ~12     !0, 'prd'
         13        COUNT                                            ~13     ~12
         14        IS_SMALLER                                               !1, ~13
         15      > JMPNZ                                                    ~14, ->3
   28    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.67 ms | 1394 KiB | 13 Q