3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'TEST'; switch('test') { default: echo 'nope'; case strtolower($a): echo 'a';break; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/0Vbod
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'TEST'
    6     1        INIT_FCALL                                               'strtolower'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        IS_EQUAL                                                 $3, 'test'
          5      > JMPNZ                                                    ~2, ->8
          6    > > JMP                                                      ->7
    5     7    >   ECHO                                                     'nope'
    7     8    >   ECHO                                                     'a'
          9      > JMP                                                      ->10
    8    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.16 ms | 1394 KiB | 15 Q