3v4l.org

run code in 500+ 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 = 18
Branch analysis from position: 4
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
2 jumps found. (Code = 47) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
2 jumps found. (Code = 47) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
Branch analysis from position: 14
Branch analysis from position: 11
Branch analysis from position: 8
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Tl9VT
function name:  {closure:/in/Tl9VT:3}
number of ops:  19
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, ->18
    6     4    >   FRAMELESS_ICALL_2                strpos              ~3      !1, 'must+be+an+instance+of+string%2C+string'
          5      > JMPNZ_EX                                             ~3      ~3, ->8
    7     6    >   FRAMELESS_ICALL_2                strpos              ~4      !1, 'must+be+an+instance+of+integer%2C+integer'
          7        BOOL                                                 ~3      ~4
          8    > > JMPNZ_EX                                             ~3      ~3, ->11
    8     9    >   FRAMELESS_ICALL_2                strpos              ~5      !1, 'must+be+an+instance+of+float%2C+double'
         10        BOOL                                                 ~3      ~5
         11    > > JMPNZ_EX                                             ~3      ~3, ->14
    9    12    >   FRAMELESS_ICALL_2                strpos              ~6      !1, 'must+be+an+instance+of+boolean%2C+boolean'
         13        BOOL                                                 ~3      ~6
         14    > > JMPNZ_EX                                             ~3      ~3, ->17
   10    15    >   FRAMELESS_ICALL_2                strpos              ~7      !1, 'must+be+an+instance+of+resource%2C+resource'
         16        BOOL                                                 ~3      ~7
         17    > > RETURN                                                       ~3
   11    18    > > 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.5.0


preferences:
226.75 ms | 3012 KiB | 16 Q