3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($ErrLevel, $ErrMessage) { if ($ErrLevel == E_RECOVERABLE_ERROR) // order this according to what your app uses most return strpos($ErrMessage, 'must be an instance of string, string') || strpos($ErrMessage, 'must be an instance of integer, integer') || strpos($ErrMessage, 'must be an instance of float, double') || strpos($ErrMessage, 'must be an instance of boolean, boolean') || strpos($ErrMessage, 'must be an instance of resource, resource'); }); function miauw(string $string) { echo 'de catchable FATAL error wordt onderdrukt wanneer $string een string is'; } miauw('woef'); // de catchable FATAL error wordt niet onderdrukt, dus de uitvoer zal stoppen miauw(42); echo 'dit wordt nooit uitgevoerd';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Tl9VT
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                          ~0      [0]
   11     2        SEND_VAL                                                 ~0
    3     3        DO_ICALL                                                 
   17     4        INIT_FCALL                                               'miauw'
          5        SEND_VAL                                                 'woef'
          6        DO_FCALL                                      0          
   20     7        INIT_FCALL                                               'miauw'
          8        SEND_VAL                                                 42
          9        DO_FCALL                                      0          
   22    10        ECHO                                                     'dit+wordt+nooit+uitgevoerd'
         11      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 33
Branch analysis from position: 4
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 47) Position 1 = 15, Position 2 = 20
Branch analysis from position: 15
2 jumps found. (Code = 47) Position 1 = 21, Position 2 = 26
Branch analysis from position: 21
2 jumps found. (Code = 47) Position 1 = 27, Position 2 = 32
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
Branch analysis from position: 26
Branch analysis from position: 20
Branch analysis from position: 14
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Tl9VT
function name:  {closure}
number of ops:  34
compiled vars:  !0 = $ErrLevel, !1 = $ErrMessage
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        IS_EQUAL                                                 !0, 4096
          3      > JMPZ                                                     ~2, ->33
    6     4    >   INIT_FCALL                                               'strpos'
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 'must+be+an+instance+of+string%2C+string'
          7        DO_ICALL                                         $3      
          8      > JMPNZ_EX                                         ~4      $3, ->14
    7     9    >   INIT_FCALL                                               'strpos'
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 'must+be+an+instance+of+integer%2C+integer'
         12        DO_ICALL                                         $5      
         13        BOOL                                             ~4      $5
         14    > > JMPNZ_EX                                         ~4      ~4, ->20
    8    15    >   INIT_FCALL                                               'strpos'
         16        SEND_VAR                                                 !1
         17        SEND_VAL                                                 'must+be+an+instance+of+float%2C+double'
         18        DO_ICALL                                         $6      
         19        BOOL                                             ~4      $6
         20    > > JMPNZ_EX                                         ~4      ~4, ->26
    9    21    >   INIT_FCALL                                               'strpos'
         22        SEND_VAR                                                 !1
         23        SEND_VAL                                                 'must+be+an+instance+of+boolean%2C+boolean'
         24        DO_ICALL                                         $7      
         25        BOOL                                             ~4      $7
         26    > > JMPNZ_EX                                         ~4      ~4, ->32
   10    27    >   INIT_FCALL                                               'strpos'
         28        SEND_VAR                                                 !1
         29        SEND_VAL                                                 'must+be+an+instance+of+resource%2C+resource'
         30        DO_ICALL                                         $8      
         31        BOOL                                             ~4      $8
         32    > > RETURN                                                   ~4
   11    33    > > RETURN                                                   null

End of Dynamic Function 0

Function miauw:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Tl9VT
function name:  miauw
number of ops:  3
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   14     1        ECHO                                                     'de+catchable+FATAL+error+wordt+onderdrukt+wanneer+%24string+een+string+is'
   15     2      > RETURN                                                   null

End of function miauw

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
123.29 ms | 1453 KiB | 17 Q