3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $b = array(false, true, true, "Galamb vagyok."); if(reset($a) === reset($b)) { echo "[PHP is broken.] Array '$a' and array '$b' are equal."; } else { echo "[PHP works as expected.] Array '$a' and array '$b' are NOT equal."; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lDkne
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'reset'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                         $4      
          5        INIT_FCALL                                               'reset'
          6        SEND_REF                                                 !1
          7        DO_ICALL                                         $5      
          8        IS_IDENTICAL                                             $4, $5
          9      > JMPZ                                                     ~6, ->17
    7    10    >   ROPE_INIT                                     5  ~8      '%5BPHP+is+broken.%5D+Array+%27'
         11        ROPE_ADD                                      1  ~8      ~8, !0
         12        ROPE_ADD                                      2  ~8      ~8, '%27+and+array+%27'
         13        ROPE_ADD                                      3  ~8      ~8, !1
         14        ROPE_END                                      4  ~7      ~8, '%27+are+equal.'
         15        ECHO                                                     ~7
         16      > JMP                                                      ->23
   10    17    >   ROPE_INIT                                     5  ~12     '%5BPHP+works+as+expected.%5D+Array+%27'
         18        ROPE_ADD                                      1  ~12     ~12, !0
         19        ROPE_ADD                                      2  ~12     ~12, '%27+and+array+%27'
         20        ROPE_ADD                                      3  ~12     ~12, !1
         21        ROPE_END                                      4  ~11     ~12, '%27+are+NOT+equal.'
         22        ECHO                                                     ~11
   11    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.86 ms | 1395 KiB | 15 Q