3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo phpversion() . PHP_EOL; $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 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Ujai
function name:  (null)
number of ops:  18
compiled vars:  !0 = $lists
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'phpversion'
          1        DO_ICALL                                         $1      
          2        CONCAT                                           ~2      $1, '%0A'
          3        ECHO                                                     ~2
    3     4        ASSIGN                                                   !0, <array>
    4     5        INIT_FCALL                                               'array_walk'
          6        SEND_REF                                                 !0
          7        SEND_VAL                                                 'trim'
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'current'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        TYPE_CHECK                                  1018          $5
         13      > JMPZ                                                     ~6, ->16
    7    14    >   ECHO                                                     'o'
         15      > JMP                                                      ->17
    9    16    >   ECHO                                                     'x'
   10    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.94 ms | 1395 KiB | 19 Q