3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler("custom_warning_handler"); function custom_warning_handler($errno, $errstr) { switch ($errno) { case E_NOTICE: echo $errstr . "\n"; return true; break; default: return false; break; } } $myvar; echo $myvar; $myvar = 3; $myvarb = 5; echo join(' ',array($myvar,$myvarb));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ngi9v
function name:  (null)
number of ops:  14
compiled vars:  !0 = $myvar, !1 = $myvarb
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'custom_warning_handler'
          2        DO_ICALL                                                 
   17     3        ECHO                                                     !0
   18     4        ASSIGN                                                   !0, 3
   19     5        ASSIGN                                                   !1, 5
   20     6        INIT_FCALL                                               'join'
          7        SEND_VAL                                                 '+'
          8        INIT_ARRAY                                       ~5      !0
          9        ADD_ARRAY_ELEMENT                                ~5      !1
         10        SEND_VAL                                                 ~5
         11        DO_ICALL                                         $6      
         12        ECHO                                                     $6
         13      > RETURN                                                   1

Function custom_warning_handler:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ngi9v
function name:  custom_warning_handler
number of ops:  12
compiled vars:  !0 = $errno, !1 = $errstr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        IS_EQUAL                                                 !0, 8
          3      > JMPNZ                                                    ~2, ->5
          4    > > JMP                                                      ->9
    7     5    >   CONCAT                                           ~3      !1, '%0A'
          6        ECHO                                                     ~3
    8     7      > RETURN                                                   <true>
    9     8*       JMP                                                      ->11
   11     9    > > RETURN                                                   <false>
   12    10*       JMP                                                      ->11
   14    11*     > RETURN                                                   null

End of function custom_warning_handler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.11 ms | 1396 KiB | 17 Q