3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'IS_NOT_EMPTY'; $array = explode(',',$string); if(in_array('IS_NOT_EMPTY',$array)){ echo 'test'; } echo '<pre>'.print_r($array,true).'</pre>'; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/eMOgJ
function name:  (null)
number of ops:  20
compiled vars:  !0 = $string, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'IS_NOT_EMPTY'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    6     6        INIT_FCALL                                               'in_array'
          7        SEND_VAL                                                 'IS_NOT_EMPTY'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10      > JMPZ                                                     $5, ->12
    7    11    >   ECHO                                                     'test'
    9    12    >   INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !1
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $6      
         16        CONCAT                                           ~7      '%3Cpre%3E', $6
         17        CONCAT                                           ~8      ~7, '%3C%2Fpre%3E'
         18        ECHO                                                     ~8
   10    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.05 ms | 1395 KiB | 19 Q