3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = "1,2,3,4,5,6,"; $var_explode = array_filter(explode(',', $var)); foreach ($var_explode as $number) { echo "$number test"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/7mnrq
function name:  (null)
number of ops:  17
compiled vars:  !0 = $var, !1 = $var_explode, !2 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1%2C2%2C3%2C4%2C5%2C6%2C'
    3     1        INIT_FCALL                                               'array_filter'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%2C'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    4     9      > FE_RESET_R                                       $7      !1, ->15
         10    > > FE_FETCH_R                                               $7, !2, ->15
    6    11    >   NOP                                                      
         12        FAST_CONCAT                                      ~8      !2, '+test'
         13        ECHO                                                     ~8
    4    14      > JMP                                                      ->10
         15    >   FE_FREE                                                  $7
    7    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.56 ms | 1395 KiB | 17 Q