3v4l.org

run code in 300+ PHP versions simultaneously
<?php $responseObject = new stdClass(); $errors = array(); $responseObject->errors = $errors; if (isset($responseObject->errors[0]) && 1 === count($responseObject->errors)) { print 1; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 13
filename:       /in/6GJ6X
function name:  (null)
number of ops:  16
compiled vars:  !0 = $responseObject, !1 = $errors
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        ASSIGN                                                   !1, <array>
    6     4        ASSIGN_OBJ                                               !0, 'errors'
          5        OP_DATA                                                  !1
    8     6        FETCH_OBJ_IS                                     ~7      !0, 'errors'
          7        ISSET_ISEMPTY_DIM_OBJ                         0  ~8      ~7, 0
          8      > JMPZ_EX                                          ~8      ~8, ->13
          9    >   FETCH_OBJ_R                                      ~9      !0, 'errors'
         10        COUNT                                            ~10     ~9
         11        IS_IDENTICAL                                     ~11     ~10, 1
         12        BOOL                                             ~8      ~11
         13    > > JMPZ                                                     ~8, ->15
    9    14    >   ECHO                                                     1
   10    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.25 ms | 1393 KiB | 13 Q