3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doSomething(string $value) : string { try { $value = 5 % 0; } catch(Exception $e) { var_dump($e); } finally { $value .= "Finally: " . $value; } return $value; } echo doSomething("Hello");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ILPvo
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'dosomething'
          1        SEND_VAL                                                 'Hello'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function dosomething:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 162) Position 1 = 10, Position 2 = 9
Branch analysis from position: 10
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
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 = 10, Position 2 = 9
Branch analysis from position: 10
Branch analysis from position: 9
filename:       /in/ILPvo
function name:  doSomething
number of ops:  17
compiled vars:  !0 = $value, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    6     1        MOD                                              ~3      5, 0
          2        ASSIGN                                                   !0, ~3
          3      > JMP                                                      ->8
    7     4  E > > CATCH                                       last         'Exception'
    8     5    >   INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    9     8    > > FAST_CALL                                                ->10
          9    > > JMP                                                      ->13
   10    10    >   CONCAT                                           ~6      'Finally%3A+', !0
         11        ASSIGN_OP                                     8          !0, ~6
         12      > FAST_RET                                                 
   12    13    >   VERIFY_RETURN_TYPE                                       !0
         14      > RETURN                                                   !0
   13    15*       VERIFY_RETURN_TYPE                                       
         16*     > RETURN                                                   null

End of function dosomething

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.84 ms | 1399 KiB | 16 Q