3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '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 = 11, Position 2 = 13, Position 3 = 8
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 11
filename:       /in/pqorY
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     <false>
    7     1        INIT_FCALL                                               'var_dump'
          2        IN_ARRAY                                         ~1      'test', <array>
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                                 
    8     5        CAST                                          6  ~3      0
          6        ASSIGN                                                   !0, ~3
    9     7      > SWITCH_STRING                                            !0, [ 'test':->11, ], ->13
   10     8    >   IS_EQUAL                                                 !0, 'test'
          9      > JMPNZ                                                    ~5, ->11
         10    > > JMP                                                      ->13
   11    11    >   ECHO                                                     'mimimi'
   12    12      > JMP                                                      ->14
   14    13    >   ECHO                                                     'notmimimi'
   16    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.17 ms | 1395 KiB | 15 Q