3v4l.org

run code in 300+ PHP versions simultaneously
<?php $haha = ''; $test = explode(",", trim($haha)); if (empty($test)) echo 'fuck'; echo 'shit';
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/4YqUQ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $haha, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, ''
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C'
          3        INIT_FCALL                                               'trim'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    4     9        ISSET_ISEMPTY_CV                                         !1
         10      > JMPZ                                                     ~6, ->12
    5    11    >   ECHO                                                     'fuck'
    6    12    >   ECHO                                                     'shit'
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.11 ms | 1394 KiB | 17 Q