3v4l.org

run code in 500+ PHP versions simultaneously
<?php $numers = array('User1' => '1', 'User2' => '123,456'); foreach($numers as $user => $num){ echo $user . PHP_EOL; if(strpos($num, ',') === FALSE) { echo 'Tel1:' . $num .PHP_EOL; } else { $nums = explode(',', $num); foreach($nums as $key => $temp){ echo 'Tel' . ($key + 1) . ':' . $temp .PHP_EOL; } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 30
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 30
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 28
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 28
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 28
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/OE3IA
function name:  (null)
number of ops:  32
compiled vars:  !0 = $numers, !1 = $num, !2 = $user, !3 = $nums, !4 = $temp, !5 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1      > FE_RESET_R                                           $7      !0, ->30
          2    > > FE_FETCH_R                                           ~8      $7, !1, ->30
          3    >   ASSIGN                                                       !2, ~8
    4     4        CONCAT                                               ~10     !2, '%0A'
          5        ECHO                                                         ~10
    5     6        FRAMELESS_ICALL_2                strpos              ~11     !1, '%2C'
          7        TYPE_CHECK                                        4          ~11
          8      > JMPZ                                                         ~12, ->13
    6     9    >   CONCAT                                               ~13     'Tel1%3A', !1
         10        CONCAT                                               ~14     ~13, '%0A'
         11        ECHO                                                         ~14
    5    12      > JMP                                                          ->29
    8    13    >   INIT_FCALL                                                   'explode'
         14        SEND_VAL                                                     '%2C'
         15        SEND_VAR                                                     !1
         16        DO_ICALL                                             $15     
         17        ASSIGN                                                       !3, $15
    9    18      > FE_RESET_R                                           $17     !3, ->28
         19    > > FE_FETCH_R                                           ~18     $17, !4, ->28
         20    >   ASSIGN                                                       !5, ~18
   10    21        ADD                                                  ~20     !5, 1
         22        CONCAT                                               ~21     'Tel', ~20
         23        CONCAT                                               ~22     ~21, '%3A'
         24        CONCAT                                               ~23     ~22, !4
         25        CONCAT                                               ~24     ~23, '%0A'
         26        ECHO                                                         ~24
    9    27      > JMP                                                          ->19
         28    >   FE_FREE                                                      $17
    3    29    > > JMP                                                          ->2
         30    >   FE_FREE                                                      $7
   13    31      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.2 ms | 2589 KiB | 14 Q