3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a {function __construct($s) { $this->s=$s;} function __toString(){return $this->s;}} $a = new a('aze'); echo hash_equals($a, $a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5MFmo
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CLASS                                            'a'
    4     1        NEW                                              $1      'a'
          2        SEND_VAL_EX                                              'aze'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
    6     5        INIT_FCALL                                               'hash_equals'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $4      
          9        ECHO                                                     $4
         10      > RETURN                                                   1

Class a:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5MFmo
function name:  __construct
number of ops:  4
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        ASSIGN_OBJ                                               's'
          2        OP_DATA                                                  !0
          3      > RETURN                                                   null

End of function __construct

Function __tostring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5MFmo
function name:  __toString
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   FETCH_OBJ_R                                      ~0      's'
          1        VERIFY_RETURN_TYPE                                       ~0
          2      > RETURN                                                   ~0
          3*       VERIFY_RETURN_TYPE                                       
          4*     > RETURN                                                   null

End of function __tostring

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.04 ms | 1395 KiB | 15 Q