3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = new stdClass(); $row->filename = 'thumbnail'; if($filename = $row->filename) { echo "in A" . PHP_EOL; if($filename === 'thumbnail') { echo "in triple" . PHP_EOL; } if($filename == 'thumbnail') { echo "in double" . PHP_EOL; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
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: 12
Branch analysis from position: 15
filename:       /in/6OCJ5
function name:  (null)
number of ops:  16
compiled vars:  !0 = $row, !1 = $filename
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    5     3        ASSIGN_OBJ                                               !0, 'filename'
          4        OP_DATA                                                  'thumbnail'
    7     5        FETCH_OBJ_R                                      ~6      !0, 'filename'
          6        ASSIGN                                           ~7      !1, ~6
          7      > JMPZ                                                     ~7, ->15
    8     8    >   ECHO                                                     'in+A%0A'
    9     9        IS_IDENTICAL                                             !1, 'thumbnail'
         10      > JMPZ                                                     ~8, ->12
   10    11    >   ECHO                                                     'in+triple%0A'
   12    12    >   IS_EQUAL                                                 !1, 'thumbnail'
         13      > JMPZ                                                     ~9, ->15
   13    14    >   ECHO                                                     'in+double%0A'
   15    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.27 ms | 1393 KiB | 13 Q