3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (bool)'test' == 0; var_dump(in_array("test", array( 's', 0), true)); $a =(string)0; switch($a){ case 'test': echo 'mimimi'; break; default: echo 'notmimimi'; }
Finding entry points
Branch analysis from position: 0
3 jumps found. (Code = 188) Position 1 = 13, Position 2 = 15, Position 3 = 10
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 13
filename:       /in/CMRAW
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   BOOL                                             ~1      'test'
          1        IS_EQUAL                                         ~2      ~1, 0
          2        ECHO                                                     ~2
    7     3        INIT_FCALL                                               'var_dump'
          4        IN_ARRAY                                         ~3      'test', <array>
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                                 
    8     7        CAST                                          6  ~5      0
          8        ASSIGN                                                   !0, ~5
    9     9      > SWITCH_STRING                                            !0, [ 'test':->13, ], ->15
   10    10    >   IS_EQUAL                                                 !0, 'test'
         11      > JMPNZ                                                    ~7, ->13
         12    > > JMP                                                      ->15
   11    13    >   ECHO                                                     'mimimi'
   12    14      > JMP                                                      ->16
   14    15    >   ECHO                                                     'notmimimi'
   16    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.17 ms | 1386 KiB | 15 Q