3v4l.org

run code in 300+ PHP versions simultaneously
<?php function errorHandler($type, $string, $msg, $file = NULL, $line = NULL) { echo "Dit gaat goed fout: ".$type.' : '. $msg.' in : '. $file.' on line : '. $line; } $warning = set_error_handler('errorHandler' , E_ALL); $failure = 42 / 0;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UR6dF
function name:  (null)
number of ops:  8
compiled vars:  !0 = $warning, !1 = $failure
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'errorHandler'
          2        SEND_VAL                                                 32767
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    9     5        DIV                                              ~4      42, 0
          6        ASSIGN                                                   !1, ~4
   10     7      > RETURN                                                   1

Function errorhandler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UR6dF
function name:  errorHandler
number of ops:  14
compiled vars:  !0 = $type, !1 = $string, !2 = $msg, !3 = $file, !4 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV_INIT                                        !3      null
          4        RECV_INIT                                        !4      null
    4     5        CONCAT                                           ~5      'Dit+gaat+goed+fout%3A+', !0
          6        CONCAT                                           ~6      ~5, '+%3A+'
          7        CONCAT                                           ~7      ~6, !2
          8        CONCAT                                           ~8      ~7, '+in+%3A+'
          9        CONCAT                                           ~9      ~8, !3
         10        CONCAT                                           ~10     ~9, '+on+line+%3A+'
         11        CONCAT                                           ~11     ~10, !4
         12        ECHO                                                     ~11
    5    13      > RETURN                                                   null

End of function errorhandler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.68 ms | 1451 KiB | 14 Q