3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "aaaa Bbbbb Ccccc Ddddd"; $arr = explode("\n", $str); Foreach($arr as $key => $val){ $new["line" . $key] = $val; } Extract($new); Echo $line2;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/psh6H
function name:  (null)
number of ops:  19
compiled vars:  !0 = $str, !1 = $arr, !2 = $val, !3 = $key, !4 = $new, !5 = $line2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'aaaa%0ABbbbb%0ACcccc%0ADdddd'
    8     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !1, $7
    9     6      > FE_RESET_R                                       $9      !1, ->13
          7    > > FE_FETCH_R                                       ~10     $9, !2, ->13
          8    >   ASSIGN                                                   !3, ~10
   10     9        CONCAT                                           ~12     'line', !3
         10        ASSIGN_DIM                                               !4, ~12
         11        OP_DATA                                                  !2
    9    12      > JMP                                                      ->7
         13    >   FE_FREE                                                  $9
   13    14        INIT_FCALL                                               'extract'
         15        SEND_REF                                                 !4
         16        DO_ICALL                                                 
   15    17        ECHO                                                     !5
   16    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.57 ms | 1405 KiB | 17 Q