3v4l.org

run code in 300+ PHP versions simultaneously
<?php function returns_null(): void { return; // Fatal error: A void function must not return a value } try { returns_null(); echo "OK!"; } catch (Error $e) { echo "Error:"; var_dump($e); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
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
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1h9P9
function name:  (null)
number of ops:  10
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'returns_null'
          1        DO_FCALL                                      0          
    9     2        ECHO                                                     'OK%21'
          3      > JMP                                                      ->9
   11     4  E > > CATCH                                       last         'Error'
   12     5    >   ECHO                                                     'Error%3A'
   13     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
   14     9    > > RETURN                                                   1

Function returns_null:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1h9P9
function name:  returns_null
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   null
    5     1*     > RETURN                                                   null

End of function returns_null

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.35 ms | 1397 KiB | 16 Q