3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "1,2,3\n4,5,6\n7,8,9"; $str = str_replace(',','',$str); echo $str,"\n\n\n"; $arrNums = preg_split("/[\\n]+/", $str); foreach ($arrNums as &$e){ $e /= 100; } $arrNames = array('Mary','Apple','Sue'); $arrAsso = array_combine($arrNames,$arrNums); foreach ( $arrAsso as $key => $value) { echo "$key:\t$value%\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
2 jumps found. (Code = 126) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 18
2 jumps found. (Code = 77) Position 1 = 26, Position 2 = 34
Branch analysis from position: 26
2 jumps found. (Code = 78) Position 1 = 27, Position 2 = 34
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
Branch analysis from position: 18
filename:       /in/evYQY
function name:  (null)
number of ops:  36
compiled vars:  !0 = $str, !1 = $arrNums, !2 = $e, !3 = $arrNames, !4 = $arrAsso, !5 = $value, !6 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1%2C2%2C3%0A4%2C5%2C6%0A7%2C8%2C9'
    3     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $8      
          6        ASSIGN                                                   !0, $8
    4     7        ECHO                                                     !0
          8        ECHO                                                     '%0A%0A%0A'
    6     9        INIT_FCALL                                               'preg_split'
         10        SEND_VAL                                                 '%2F%5B%5Cn%5D%2B%2F'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $10     
         13        ASSIGN                                                   !1, $10
    7    14      > FE_RESET_RW                                      $12     !1, ->18
         15    > > FE_FETCH_RW                                              $12, !2, ->18
    8    16    >   ASSIGN_OP                                     4          !2, 100
    7    17      > JMP                                                      ->15
         18    >   FE_FREE                                                  $12
   10    19        ASSIGN                                                   !3, <array>
   11    20        INIT_FCALL                                               'array_combine'
         21        SEND_VAR                                                 !3
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                         $15     
         24        ASSIGN                                                   !4, $15
   12    25      > FE_RESET_R                                       $17     !4, ->34
         26    > > FE_FETCH_R                                       ~18     $17, !5, ->34
         27    >   ASSIGN                                                   !6, ~18
   13    28        ROPE_INIT                                     4  ~21     !6
         29        ROPE_ADD                                      1  ~21     ~21, '%3A%09'
         30        ROPE_ADD                                      2  ~21     ~21, !5
         31        ROPE_END                                      3  ~20     ~21, '%25%0A'
         32        ECHO                                                     ~20
   12    33      > JMP                                                      ->26
         34    >   FE_FREE                                                  $17
   14    35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.74 ms | 1405 KiB | 19 Q