3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 1; switch ($test) { case 1: var_dump('pizza'); case 2: var_dump('onions'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
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: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hUFP8
function name:  (null)
number of ops:  13
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    4     1        IS_EQUAL                                                 !0, 1
          2      > JMPNZ                                                    ~2, ->6
    6     3    >   IS_EQUAL                                                 !0, 2
          4      > JMPNZ                                                    ~2, ->9
          5    > > JMP                                                      ->12
    5     6    >   INIT_FCALL                                               'var_dump'
          7        SEND_VAL                                                 'pizza'
          8        DO_ICALL                                                 
    7     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAL                                                 'onions'
         11        DO_ICALL                                                 
    8    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.36 ms | 1394 KiB | 15 Q