3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected $i = 0; /*public function __toString() { $this->i++; return "$this->i"; }*/ } $a = new A; # echo $a; $b = [100, $a]; var_dump( array_intersect($b, $b) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fUn9t
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $2      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   15     3        INIT_ARRAY                                       ~5      100
          4        ADD_ARRAY_ELEMENT                                ~5      !0
          5        ASSIGN                                                   !1, ~5
   17     6        INIT_FCALL                                               'var_dump'
   18     7        INIT_FCALL                                               'array_intersect'
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $7      
         11        SEND_VAR                                                 $7
         12        DO_ICALL                                                 
   19    13      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.94 ms | 1394 KiB | 17 Q