3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $page = $_GET['page'] ?? 1; if($_GET['page'] ?? 1) { echo "bla"; } echo $page;
based on 84OnC
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
Jump found. Position 1 = -2
Branch analysis from position: 11
filename:       /in/FvaHH
function name:  (null)
number of ops:  13
compiled vars:  !0 = $page
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   FETCH_IS                                         $1      '_GET'
         1        FETCH_DIM_IS                                     $2      $1, 'page'
         2        COALESCE                                         ~3      $2
         3        QM_ASSIGN                                        ~3      1
         4        ASSIGN                                                   !0, ~3
   5     5        FETCH_IS                                         $5      '_GET'
         6        FETCH_DIM_IS                                     $6      $5, 'page'
         7        COALESCE                                         ~7      $6
         8        QM_ASSIGN                                        ~7      1
         9      > JMPZ                                                     ~7, ->11
   6    10    >   ECHO                                                     'bla'
   9    11    >   ECHO                                                     !0
        12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0