3v4l.org

run code in 300+ PHP versions simultaneously
<?php $params = array('ciao' => 'ok', 'x' => 'f3ii'); $params[0] = 'all'; if (isset($params[0]) && $params[0] == 'all') { echo 'ok'; } else { echo 'nok'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/iKCWA
function name:  (null)
number of ops:  13
compiled vars:  !0 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0, 0
          2        OP_DATA                                                  'all'
    6     3        ISSET_ISEMPTY_DIM_OBJ                         0  ~3      !0, 0
          4      > JMPZ_EX                                          ~3      ~3, ->8
          5    >   FETCH_DIM_R                                      ~4      !0, 0
          6        IS_EQUAL                                         ~5      ~4, 'all'
          7        BOOL                                             ~3      ~5
          8    > > JMPZ                                                     ~3, ->11
    7     9    >   ECHO                                                     'ok'
         10      > JMP                                                      ->12
    9    11    >   ECHO                                                     'nok'
   10    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.98 ms | 1393 KiB | 13 Q