3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass(); $a->a = function(){return 1.1;}; $b = new stdClass(); $b->b = function(){return 1.1;}; var_dump($a->a == $b->b); var_dump($a->a() == $b->b());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xr4TV
function name:  (null)
number of ops:  27
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FXr4TV%3A4%240'
          4        ASSIGN_OBJ                                               !0, 'a'
          5        OP_DATA                                                  ~6
    5     6        NEW                                              $7      'stdClass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $7
    6     9        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FXr4TV%3A6%241'
         10        ASSIGN_OBJ                                               !1, 'b'
         11        OP_DATA                                                  ~11
    7    12        INIT_FCALL                                               'var_dump'
         13        FETCH_OBJ_R                                      ~12     !0, 'a'
         14        FETCH_OBJ_R                                      ~13     !1, 'b'
         15        IS_EQUAL                                         ~14     ~12, ~13
         16        SEND_VAL                                                 ~14
         17        DO_ICALL                                                 
    8    18        INIT_FCALL                                               'var_dump'
         19        INIT_METHOD_CALL                                         !0, 'a'
         20        DO_FCALL                                      0  $16     
         21        INIT_METHOD_CALL                                         !1, 'b'
         22        DO_FCALL                                      0  $17     
         23        IS_EQUAL                                         ~18     $16, $17
         24        SEND_VAL                                                 ~18
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2FXr4TV%3A4%240

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.36 ms | 1396 KiB | 15 Q