3v4l.org

run code in 300+ PHP versions simultaneously
<?php switch ("a") { case "a": test(); echo "b"; } function test() { echo "c"; return; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 2, Position 2 = 3
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YRg5Q
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   IS_EQUAL                                                 'a', 'a'
          1      > JMPNZ                                                    ~0, ->3
          2    > > JMP                                                      ->6
    5     3    >   INIT_FCALL_BY_NAME                                       'test'
          4        DO_FCALL                                      0          
    6     5        ECHO                                                     'b'
   13     6    > > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YRg5Q
function name:  test
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'c'
   12     1      > RETURN                                                   null
   13     2*     > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.91 ms | 1393 KiB | 13 Q