3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stdObject = new StdClass; set_error_handler(function (int $severity, string $message, string $filename, int $line) { echo "Error Handled"; }); array_diff([$stdObject], [$stdObject]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H5e1E
function name:  (null)
number of ops:  14
compiled vars:  !0 = $stdObject
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'StdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    3     3        INIT_FCALL                                               'set_error_handler'
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FH5e1E%3A3%240'
    5     5        SEND_VAL                                                 ~4
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'array_diff'
          8        INIT_ARRAY                                       ~6      !0
          9        SEND_VAL                                                 ~6
         10        INIT_ARRAY                                       ~7      !0
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FH5e1E%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H5e1E
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $severity, !1 = $message, !2 = $filename, !3 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    4     4        ECHO                                                     'Error+Handled'
    5     5      > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.25 ms | 1400 KiB | 17 Q