3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = [0 => true, 1 => true, 2 => false]; echo reset($result) === true && count(array_unique($result)) === 1;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/CC32h
function name:  (null)
number of ops:  14
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'reset'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                         $2      
          4        TYPE_CHECK                                    8  ~3      $2
          5      > JMPZ_EX                                          ~3      ~3, ->12
          6    >   INIT_FCALL                                               'array_unique'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $4      
          9        COUNT                                            ~5      $4
         10        IS_IDENTICAL                                     ~6      ~5, 1
         11        BOOL                                             ~3      ~6
         12    >   ECHO                                                     ~3
    6    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.1 ms | 1394 KiB | 17 Q