3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function () {}); trigger_error('ha', E_USER_WARNING); $msg = null; set_error_handler(function ($errno, $errstr, $errfile, $errline, $errcontext) use (&$msg) { $msg = $errstr; }); print "'$msg'"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ID9oa
function name:  (null)
number of ops:  19
compiled vars:  !0 = $msg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FID9oa%3A3%240'
          2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'trigger_error'
          5        SEND_VAL                                                 'ha'
          6        SEND_VAL                                                 512
          7        DO_ICALL                                                 
    5     8        ASSIGN                                                   !0, null
    6     9        INIT_FCALL                                               'set_error_handler'
         10        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FID9oa%3A6%241'
         11        BIND_LEXICAL                                             ~5, !0
    8    12        SEND_VAL                                                 ~5
         13        DO_ICALL                                                 
    9    14        ROPE_INIT                                     3  ~8      '%27'
         15        ROPE_ADD                                      1  ~8      ~8, !0
         16        ROPE_END                                      2  ~7      ~8, '%27'
         17        ECHO                                                     ~7
   10    18      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FID9oa%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ID9oa
function name:  {closure}
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FID9oa%3A3%240

Function %00%7Bclosure%7D%2Fin%2FID9oa%3A6%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ID9oa
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $errno, !1 = $errstr, !2 = $errfile, !3 = $errline, !4 = $errcontext, !5 = $msg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
          4        RECV                                             !4      
          5        BIND_STATIC                                              !5
    7     6        ASSIGN                                                   !5, !1
    8     7      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FID9oa%3A6%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.15 ms | 1396 KiB | 17 Q