3v4l.org

run code in 300+ PHP versions simultaneously
<?php $responseObject = new stdClass(); $errors = array('123'); $responseObject->errors = $errors; if (1 === count($responseObject->errors)) { print 1; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/okpai
function name:  (null)
number of ops:  12
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_R                                      ~7      !0, 'errors'
          7        COUNT                                            ~8      ~7
          8        IS_IDENTICAL                                             ~8, 1
          9      > JMPZ                                                     ~9, ->11
    9    10    >   ECHO                                                     1
   10    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.63 ms | 1393 KiB | 13 Q