3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $b; private $f; public function __constructor($b, $f) { $this->b = $b; $this->f = $f; } } $a1 = new A(12, 'ololo'); $a2 = new A(12, 'ololo'); $a3 = new A(13, 'ololo3'); var_dump($a1 == $a2); var_dump($a1 == $a3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nfcPu
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a1, !1 = $a2, !2 = $a3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $3      'A'
          1        SEND_VAL_EX                                              12
          2        SEND_VAL_EX                                              'ololo'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $3
   16     5        NEW                                              $6      'A'
          6        SEND_VAL_EX                                              12
          7        SEND_VAL_EX                                              'ololo'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $6
   17    10        NEW                                              $9      'A'
         11        SEND_VAL_EX                                              13
         12        SEND_VAL_EX                                              'ololo3'
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !2, $9
   19    15        INIT_FCALL                                               'var_dump'
         16        IS_EQUAL                                         ~12     !0, !1
         17        SEND_VAL                                                 ~12
         18        DO_ICALL                                                 
   20    19        INIT_FCALL                                               'var_dump'
         20        IS_EQUAL                                         ~14     !0, !2
         21        SEND_VAL                                                 ~14
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Class A:
Function __constructor:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nfcPu
function name:  __constructor
number of ops:  7
compiled vars:  !0 = $b, !1 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        ASSIGN_OBJ                                               'b'
          3        OP_DATA                                                  !0
   11     4        ASSIGN_OBJ                                               'f'
          5        OP_DATA                                                  !1
   12     6      > RETURN                                                   null

End of function __constructor

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.45 ms | 1396 KiB | 15 Q