3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(1,2,3); $object = new stdClass(); $object->st = 'asdf'; $ef = is_array($array) ?: 'false'; print_r($ef); $ef = is_array($object) ?: 'false'; print_r($ef);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VvrBG
function name:  (null)
number of ops:  21
compiled vars:  !0 = $array, !1 = $object, !2 = $ef
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        NEW                                              $4      'stdClass'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $4
    5     4        ASSIGN_OBJ                                               !1, 'st'
          5        OP_DATA                                                  'asdf'
    7     6        TYPE_CHECK                                  128  ~8      !0
          7        JMP_SET                                          ~9      ~8, ->9
          8        QM_ASSIGN                                        ~9      'false'
          9        ASSIGN                                                   !2, ~9
    8    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
   10    13        TYPE_CHECK                                  128  ~12     !1
         14        JMP_SET                                          ~13     ~12, ->16
         15        QM_ASSIGN                                        ~13     'false'
         16        ASSIGN                                                   !2, ~13
   11    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.55 ms | 1395 KiB | 15 Q