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); var_dump($a->a() == $b->b());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1eF1D
function name:  (null)
number of ops:  25
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%2F1eF1D%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%2F1eF1D%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        SEND_VAL                                                 ~12
         15        DO_ICALL                                                 
    8    16        INIT_FCALL                                               'var_dump'
         17        INIT_METHOD_CALL                                         !0, 'a'
         18        DO_FCALL                                      0  $14     
         19        INIT_METHOD_CALL                                         !1, 'b'
         20        DO_FCALL                                      0  $15     
         21        IS_EQUAL                                         ~16     $14, $15
         22        SEND_VAL                                                 ~16
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.94 ms | 1396 KiB | 15 Q