3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($c) { try { if ($c) { return 0; } else { return 1; } } finally { try { // NOOP } finally { // NOOP } } } var_dump(test(true), test(false));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DsLLE
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'test'
          2        SEND_VAL                                                 <true>
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        INIT_FCALL                                               'test'
          6        SEND_VAL                                                 <false>
          7        DO_FCALL                                      0  $1      
          8        SEND_VAR                                                 $1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 5
Branch analysis from position: 2
2 jumps found. (Code = 162) Position 1 = 9, Position 2 = 3
Branch analysis from position: 9
2 jumps found. (Code = 162) Position 1 = 11, Position 2 = 10
Branch analysis from position: 11
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 162) Position 1 = 9, Position 2 = 6
Branch analysis from position: 9
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DsLLE
function name:  test
number of ops:  14
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1      > JMPZ                                                     !0, ->5
    6     2    > > FAST_CALL                                                ->9
          3    > > RETURN                                                   0
          4*       JMP                                                      ->7
    8     5    > > FAST_CALL                                                ->9
          6    > > RETURN                                                   1
   10     7*       FAST_CALL                                                ->9
          8*       JMP                                                      ->13
   13     9    > > FAST_CALL                                                ->11
         10    > > JMP                                                      ->12
         11    > > FAST_RET                                                 
         12    > > FAST_RET                                                 
   17    13*     > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.72 ms | 1399 KiB | 17 Q