3v4l.org

run code in 300+ PHP versions simultaneously
<?php $val0 = 'false'; if (in_array($val0, ['true', 'false'])) { $val = $val0 === 'true'; } else { $val = $val0; } var_dump(trim($val, "'"));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rZjk1
function name:  (null)
number of ops:  15
compiled vars:  !0 = $val0, !1 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'false'
    5     1        IN_ARRAY                                                 !0, <array>
          2      > JMPZ                                                     ~3, ->6
    6     3    >   IS_IDENTICAL                                     ~4      !0, 'true'
          4        ASSIGN                                                   !1, ~4
          5      > JMP                                                      ->7
    9     6    >   ASSIGN                                                   !1, !0
   12     7    >   INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'trim'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 '%27'
         11        DO_ICALL                                         $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.05 ms | 1394 KiB | 17 Q