3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cidr = "192.168.2.1, 23.34.45.56"; $arr = explode(",", filter_var($cidr)); foreach ($arr as $item) { echo "$item <br>"; } echo $arr[0]; echo "\n"; echo $arr[1]; $a = "1.2.3.4/"; $parts = explode("/", $a); echo $parts[0]; echo $parts[1]; if ($parts[1] == "") { echo "True"; } ?>
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
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 35
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
Branch analysis from position: 15
filename:       /in/QFuCQ
function name:  (null)
number of ops:  36
compiled vars:  !0 = $cidr, !1 = $arr, !2 = $item, !3 = $a, !4 = $parts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '192.168.2.1%2C+23.34.45.56'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C'
          3        INIT_FCALL                                               'filter_var'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        SEND_VAR                                                 $6
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !1, $7
    5     9      > FE_RESET_R                                       $9      !1, ->15
         10    > > FE_FETCH_R                                               $9, !2, ->15
    7    11    >   NOP                                                      
         12        FAST_CONCAT                                      ~10     !2, '+%3Cbr%3E'
         13        ECHO                                                     ~10
    5    14      > JMP                                                      ->10
         15    >   FE_FREE                                                  $9
    9    16        FETCH_DIM_R                                      ~11     !1, 0
         17        ECHO                                                     ~11
   10    18        ECHO                                                     '%0A'
   11    19        FETCH_DIM_R                                      ~12     !1, 1
         20        ECHO                                                     ~12
   13    21        ASSIGN                                                   !3, '1.2.3.4%2F'
   14    22        INIT_FCALL                                               'explode'
         23        SEND_VAL                                                 '%2F'
         24        SEND_VAR                                                 !3
         25        DO_ICALL                                         $14     
         26        ASSIGN                                                   !4, $14
   15    27        FETCH_DIM_R                                      ~16     !4, 0
         28        ECHO                                                     ~16
   16    29        FETCH_DIM_R                                      ~17     !4, 1
         30        ECHO                                                     ~17
   17    31        FETCH_DIM_R                                      ~18     !4, 1
         32        IS_EQUAL                                                 ~18, ''
         33      > JMPZ                                                     ~19, ->35
   18    34    >   ECHO                                                     'True'
   20    35    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.15 ms | 1396 KiB | 17 Q