3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = $b; $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/dSFSO
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a, !1 = $b, !2 = $msg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, !1
    4     1        ASSIGN                                                   !2, null
    5     2        INIT_FCALL                                               'set_error_handler'
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FdSFSO%3A5%240'
          4        BIND_LEXICAL                                             ~5, !2
    7     5        SEND_VAL                                                 ~5
          6        DO_ICALL                                                 
    8     7        ECHO                                                     !2
    9     8      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FdSFSO%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dSFSO
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%2FdSFSO%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.2 ms | 1395 KiB | 15 Q