3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lists = array('hoge'); array_walk($lists, 'trim'); if (current($lists) !== false) { echo 'o'; } else { echo 'x'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HEDP6
function name:  (null)
number of ops:  14
compiled vars:  !0 = $lists
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'array_walk'
          2        SEND_REF                                                 !0
          3        SEND_VAL                                                 'trim'
          4        DO_ICALL                                                 
    5     5        INIT_FCALL                                               'current'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        TYPE_CHECK                                  1018          $3
          9      > JMPZ                                                     ~4, ->12
    6    10    >   ECHO                                                     'o'
         11      > JMP                                                      ->13
    8    12    >   ECHO                                                     'x'
    9    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.91 ms | 1394 KiB | 17 Q