3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f() { try { return 42 * print "(value of return)\n"; } catch (Exception $e) { echo "-Fail\n"; } finally { echo "finally.\n"; } } var_dump(f());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IDmpL
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'f'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 162) Position 1 = 8, Position 2 = 2
Branch analysis from position: 8
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 2
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 4
Branch analysis from position: 4
2 jumps found. (Code = 107) Position 1 = 5, Position 2 = -2
Branch analysis from position: 5
2 jumps found. (Code = 162) Position 1 = 8, Position 2 = 7
Branch analysis from position: 8
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
filename:       /in/IDmpL
function name:  f
number of ops:  11
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     '%28value+of+return%29%0A'
          1      > FAST_CALL                                                ->8
          2    > > RETURN                                                   42
          3*       JMP                                                      ->6
    6     4  E > > CATCH                                       last         'Exception'
    7     5    >   ECHO                                                     '-Fail%0A'
    9     6      > FAST_CALL                                                ->8
          7    > > JMP                                                      ->10
   10     8    >   ECHO                                                     'finally.%0A'
          9      > FAST_RET                                                 
   12    10    > > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.43 ms | 1398 KiB | 16 Q