3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reference = 0; if (is_int($this->reference) && $this->reference == 0) { var_dump('0'); } $reference = 'ex-1'; if (is_int($this->reference) && $this->reference == 0) { var_dump('ex-1'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 22
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 26
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
Branch analysis from position: 22
Branch analysis from position: 13
Branch analysis from position: 9
filename:       /in/7r5rj
function name:  (null)
number of ops:  27
compiled vars:  !0 = $reference
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    4     1        FETCH_THIS                                       $2      
          2        FETCH_OBJ_R                                      ~3      $2, 'reference'
          3        TYPE_CHECK                                   16  ~4      ~3
          4      > JMPZ_EX                                          ~4      ~4, ->9
          5    >   FETCH_THIS                                       $5      
          6        FETCH_OBJ_R                                      ~6      $5, 'reference'
          7        IS_EQUAL                                         ~7      ~6, 0
          8        BOOL                                             ~4      ~7
          9    > > JMPZ                                                     ~4, ->13
    5    10    >   INIT_FCALL                                               'var_dump'
         11        SEND_VAL                                                 '0'
         12        DO_ICALL                                                 
    8    13    >   ASSIGN                                                   !0, 'ex-1'
    9    14        FETCH_THIS                                       $10     
         15        FETCH_OBJ_R                                      ~11     $10, 'reference'
         16        TYPE_CHECK                                   16  ~12     ~11
         17      > JMPZ_EX                                          ~12     ~12, ->22
         18    >   FETCH_THIS                                       $13     
         19        FETCH_OBJ_R                                      ~14     $13, 'reference'
         20        IS_EQUAL                                         ~15     ~14, 0
         21        BOOL                                             ~12     ~15
         22    > > JMPZ                                                     ~12, ->26
   10    23    >   INIT_FCALL                                               'var_dump'
         24        SEND_VAL                                                 'ex-1'
         25        DO_ICALL                                                 
   11    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.09 ms | 1396 KiB | 15 Q