3v4l.org

run code in 300+ PHP versions simultaneously
<?php 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/rlqGZ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $msg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'trigger_error'
          1        SEND_VAL                                                 'ha'
          2        SEND_VAL                                                 512
          3        DO_ICALL                                                 
    4     4        ASSIGN                                                   !0, null
    5     5        INIT_FCALL                                               'set_error_handler'
          6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FrlqGZ%3A5%240'
          7        BIND_LEXICAL                                             ~3, !0
    7     8        SEND_VAL                                                 ~3
          9        DO_ICALL                                                 
    8    10        ROPE_INIT                                     3  ~6      '%27'
         11        ROPE_ADD                                      1  ~6      ~6, !0
         12        ROPE_END                                      2  ~5      ~6, '%27'
         13        ECHO                                                     ~5
    9    14      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FrlqGZ%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rlqGZ
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
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
          4        RECV                                             !4      
          5        BIND_STATIC                                              !5
    6     6        ASSIGN                                                   !5, !1
    7     7      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FrlqGZ%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.32 ms | 1387 KiB | 17 Q