3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$names = explode(PHP_EOL,file_get_contents("none.txt)); $names = explode(PHP_EOL, "teste teste1 teste2 teste3"); //$dates = explode(PHP_EOL,file_get_contents("data.txt)); $dates = explode(PHP_EOL, "12-12 18-12 12-12 12-12"); Foreach($names as $key => $name){ Echo $name . " " . $dates[$key] . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/59ao6
function name:  (null)
number of ops:  21
compiled vars:  !0 = $names, !1 = $dates, !2 = $name, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '%0A'
          2        SEND_VAL                                                 'teste%0Ateste1%0Ateste2%0Ateste3'
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
   10     5        INIT_FCALL                                               'explode'
          6        SEND_VAL                                                 '%0A'
          7        SEND_VAL                                                 '12-12%0A18-12%0A12-12%0A12-12'
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !1, $6
   15    10      > FE_RESET_R                                       $8      !0, ->19
         11    > > FE_FETCH_R                                       ~9      $8, !2, ->19
         12    >   ASSIGN                                                   !3, ~9
   17    13        CONCAT                                           ~11     !2, '+'
         14        FETCH_DIM_R                                      ~12     !1, !3
         15        CONCAT                                           ~13     ~11, ~12
         16        CONCAT                                           ~14     ~13, '%0A'
         17        ECHO                                                     ~14
   15    18      > JMP                                                      ->11
         19    >   FE_FREE                                                  $8
   18    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.87 ms | 1405 KiB | 15 Q