3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cookie = new ArrayObject([], ArrayObject::ARRAY_AS_PROPS); if ($cookie) { echo "test"; } $cookie = false; $cookie_data = $cookie ? $cookie->getArrayCopy() : []; var_dump($cookie_data);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/Q6hMj
function name:  (null)
number of ops:  19
compiled vars:  !0 = $cookie, !1 = $cookie_data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'ArrayObject'
          1        SEND_VAL_EX                                              <array>
          2        SEND_VAL_EX                                              2
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
    4     5      > JMPZ                                                     !0, ->7
          6    >   ECHO                                                     'test'
    5     7    >   ASSIGN                                                   !0, <false>
    6     8      > JMPZ                                                     !0, ->13
          9    >   INIT_METHOD_CALL                                         !0, 'getArrayCopy'
         10        DO_FCALL                                      0  $6      
         11        QM_ASSIGN                                        ~7      $6
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~7      <array>
         14    >   ASSIGN                                                   !1, ~7
    8    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.2 ms | 1395 KiB | 15 Q