3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doSomething(string $value) : string { try { $value = 5 % 0; } 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/Eeqfc
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     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
2 jumps found. (Code = 162) Position 1 = 5, Position 2 = 4
Branch analysis from position: 5
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Eeqfc
function name:  doSomething
number of ops:  12
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    6     1        MOD                                              ~2      5, 0
          2        ASSIGN                                                   !0, ~2
    7     3      > FAST_CALL                                                ->5
          4    > > JMP                                                      ->8
    8     5    >   CONCAT                                           ~4      'Finally%3A+', !0
          6        ASSIGN_OP                                     8          !0, ~4
          7      > FAST_RET                                                 
   10     8    >   VERIFY_RETURN_TYPE                                       !0
          9      > RETURN                                                   !0
   11    10*       VERIFY_RETURN_TYPE                                       
         11*     > RETURN                                                   null

End of function dosomething

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.19 ms | 1397 KiB | 14 Q