3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $a; } class B extends A { public $b; } $a = new B(); $a->a = 0; $a->b = 1; $b = new B(); $b->a = 1; $b->b = 0; var_dump($a < $b); (array)['a']; var_dump($a < $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2hITu
function name:  (null)
number of ops:  25
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $2      'B'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
          3        ASSIGN_OBJ                                               !0, 'a'
          4        OP_DATA                                                  0
          5        ASSIGN_OBJ                                               !0, 'b'
          6        OP_DATA                                                  1
    6     7        NEW                                              $7      'B'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $7
         10        ASSIGN_OBJ                                               !1, 'a'
         11        OP_DATA                                                  1
         12        ASSIGN_OBJ                                               !1, 'b'
         13        OP_DATA                                                  0
    7    14        INIT_FCALL                                               'var_dump'
         15        IS_SMALLER                                       ~12     !0, !1
         16        SEND_VAL                                                 ~12
         17        DO_ICALL                                                 
    8    18        CAST                                          7  ~14     <array>
         19        FREE                                                     ~14
    9    20        INIT_FCALL                                               'var_dump'
         21        IS_SMALLER                                       ~15     !0, !1
         22        SEND_VAL                                                 ~15
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Class A: [no user functions]
Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.95 ms | 1395 KiB | 15 Q