3v4l.org

run code in 300+ PHP versions simultaneously
<?php class HOGE{ private $a; private $b; public function __construct($a, $b){ $this->a = $a; $this->b = $b; } } $a = new HOGE(10, 20); $b = new HOGE(10, 30); $c = new HOGE(11, 0); var_dump($a>$b, $a<$b); var_dump($a>$c, $a<$c); var_dump($b>$c, $b<$c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TCrTW
function name:  (null)
number of ops:  34
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $3      'HOGE'
          1        SEND_VAL_EX                                              10
          2        SEND_VAL_EX                                              20
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $3
   13     5        NEW                                              $6      'HOGE'
          6        SEND_VAL_EX                                              10
          7        SEND_VAL_EX                                              30
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $6
   14    10        NEW                                              $9      'HOGE'
         11        SEND_VAL_EX                                              11
         12        SEND_VAL_EX                                              0
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !2, $9
   16    15        INIT_FCALL                                               'var_dump'
         16        IS_SMALLER                                       ~12     !1, !0
         17        SEND_VAL                                                 ~12
         18        IS_SMALLER                                       ~13     !0, !1
         19        SEND_VAL                                                 ~13
         20        DO_ICALL                                                 
   17    21        INIT_FCALL                                               'var_dump'
         22        IS_SMALLER                                       ~15     !2, !0
         23        SEND_VAL                                                 ~15
         24        IS_SMALLER                                       ~16     !0, !2
         25        SEND_VAL                                                 ~16
         26        DO_ICALL                                                 
   18    27        INIT_FCALL                                               'var_dump'
         28        IS_SMALLER                                       ~18     !2, !1
         29        SEND_VAL                                                 ~18
         30        IS_SMALLER                                       ~19     !1, !2
         31        SEND_VAL                                                 ~19
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

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

End of function __construct

End of class HOGE.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.76 ms | 1400 KiB | 15 Q