3v4l.org

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

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

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

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

End of function %00%7Bclosure%7D%2Fin%2FB7RbJ%3A4%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.65 ms | 1396 KiB | 17 Q