3v4l.org

run code in 300+ PHP versions simultaneously
<?php $msg= "one two three four five six"; $astr = explode(" ",$msg); for($i=0; $i<count($astr);$i++) echo"<br>".$astr[$i]; $mstr = implode(">",$astr); echo "<br>".$mstr; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
Branch analysis from position: 8
filename:       /in/8Bpi9
function name:  (null)
number of ops:  23
compiled vars:  !0 = $msg, !1 = $astr, !2 = $i, !3 = $mstr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'one+two+three+four+five+six'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '+'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    4     6        ASSIGN                                                   !2, 0
          7      > JMP                                                      ->12
    5     8    >   FETCH_DIM_R                                      ~8      !1, !2
          9        CONCAT                                           ~9      '%3Cbr%3E', ~8
         10        ECHO                                                     ~9
    4    11        PRE_INC                                                  !2
         12    >   COUNT                                            ~11     !1
         13        IS_SMALLER                                               !2, ~11
         14      > JMPNZ                                                    ~12, ->8
    6    15    >   INIT_FCALL                                               'implode'
         16        SEND_VAL                                                 '%3E'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $13     
         19        ASSIGN                                                   !3, $13
    7    20        CONCAT                                           ~15     '%3Cbr%3E', !3
         21        ECHO                                                     ~15
    8    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
201.18 ms | 1395 KiB | 17 Q