3v4l.org

run code in 300+ PHP versions simultaneously
<?php $series = array ( 0 => "Series A", 1 => "Series B", 2 => "Series C", 3 => "Series D", 4 => "Series E", 5 => "Series F" ); $episodes = array ( 0 => array ( 0 => "a0" ), 1 => array ( 0 => "b0", 1 => "b1" ), 2 => array ( 0 => "c0", 1 => "c1" ), 3 => array ( 0 => "d0" ), 4 => array ( 0 => "e0" ), 5 => array ( 0 => "f0" ) ); foreach ($series as $key => $value) { echo $value . ' - ' . implode(', ', $episodes[$key]) . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/XKZYY
function name:  (null)
number of ops:  17
compiled vars:  !0 = $series, !1 = $episodes, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1        ASSIGN                                                   !1, <array>
   23     2      > FE_RESET_R                                       $6      !0, ->15
          3    > > FE_FETCH_R                                       ~7      $6, !2, ->15
          4    >   ASSIGN                                                   !3, ~7
   24     5        CONCAT                                           ~9      !2, '+-+'
          6        INIT_FCALL                                               'implode'
          7        SEND_VAL                                                 '%2C+'
          8        FETCH_DIM_R                                      ~10     !1, !3
          9        SEND_VAL                                                 ~10
         10        DO_ICALL                                         $11     
         11        CONCAT                                           ~12     ~9, $11
         12        CONCAT                                           ~13     ~12, '%0A'
         13        ECHO                                                     ~13
   23    14      > JMP                                                      ->3
         15    >   FE_FREE                                                  $6
   25    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.8 ms | 1004 KiB | 14 Q