3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('a', (object)['a' => 'str']); $b = array('a', (object)['a' => 'str']); var_dump($a == $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YST6J
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_ARRAY                                       ~2      'a'
          1        CAST                                          8  ~3      <array>
          2        ADD_ARRAY_ELEMENT                                ~2      ~3
          3        ASSIGN                                                   !0, ~2
    4     4        INIT_ARRAY                                       ~5      'a'
          5        CAST                                          8  ~6      <array>
          6        ADD_ARRAY_ELEMENT                                ~5      ~6
          7        ASSIGN                                                   !1, ~5
    6     8        INIT_FCALL                                               'var_dump'
          9        IS_EQUAL                                         ~8      !0, !1
         10        SEND_VAL                                                 ~8
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.53 ms | 1385 KiB | 15 Q