3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); echo $a; set_error_handler(function($a, $b, $c, $d) { echo 'error handler'; }); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WBY3X
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 0
          2        DO_ICALL                                                 
    5     3        ECHO                                                     !0
    7     4        INIT_FCALL                                               'set_error_handler'
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FWBY3X%3A7%240'
    9     6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
   11     8      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FWBY3X%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WBY3X
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    8     4        ECHO                                                     'error+handler'
    9     5      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FWBY3X%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.87 ms | 1395 KiB | 17 Q