3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ public $name; } $c = new A(); $c->name = 'A'; $a = new A(); $a->name = 'C'; function a($a, $c){ return var_dump($a == $c); } echo a();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IBHIa
function name:  (null)
number of ops:  14
compiled vars:  !0 = $c, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $2      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    9     3        ASSIGN_OBJ                                               !0, 'name'
          4        OP_DATA                                                  'A'
   11     5        NEW                                              $6      'A'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
   12     8        ASSIGN_OBJ                                               !1, 'name'
          9        OP_DATA                                                  'C'
   17    10        INIT_FCALL                                               'a'
         11        DO_FCALL                                      0  $10     
         12        ECHO                                                     $10
         13      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IBHIa
function name:  a
number of ops:  8
compiled vars:  !0 = $a, !1 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   15     2        INIT_FCALL                                               'var_dump'
          3        IS_EQUAL                                         ~2      !0, !1
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                         $3      
          6      > RETURN                                                   $3
   16     7*     > RETURN                                                   null

End of function a

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.32 ms | 1398 KiB | 16 Q