3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function() { exit; }); $array = [new StdClass]; register_shutdown_function(function() use ($array) { var_dump($array); }); var_dump([1] == $array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tveb5
function name:  (null)
number of ops:  18
compiled vars:  !0 = $array
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%2Ftveb5%3A3%240'
          2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
    5     4        NEW                                              $3      'StdClass'
          5        DO_FCALL                                      0          
          6        INIT_ARRAY                                       ~5      $3
          7        ASSIGN                                                   !0, ~5
    6     8        INIT_FCALL                                               'register_shutdown_function'
          9        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Ftveb5%3A6%241'
         10        BIND_LEXICAL                                             ~7, !0
    8    11        SEND_VAL                                                 ~7
         12        DO_ICALL                                                 
    9    13        INIT_FCALL                                               'var_dump'
         14        IS_EQUAL                                         ~9      !0, <array>
         15        SEND_VAL                                                 ~9
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

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

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

Function %00%7Bclosure%7D%2Fin%2Ftveb5%3A6%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tveb5
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   BIND_STATIC                                              !0
    7     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    8     4      > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.36 ms | 1396 KiB | 19 Q