3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myCheck($in) { return isset($in); } $var1='Something'; $var2='var1'; echo 'Set:' . isset($$var2); $var2='nope'; echo '<br>Set:' . isset($$var2); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UopGW
function name:  (null)
number of ops:  10
compiled vars:  !0 = $var1, !1 = $var2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'Something'
    6     1        ASSIGN                                                   !1, 'var1'
    8     2        ISSET_ISEMPTY_VAR                             4  ~4      !1
          3        CONCAT                                           ~5      'Set%3A', ~4
          4        ECHO                                                     ~5
    9     5        ASSIGN                                                   !1, 'nope'
   10     6        ISSET_ISEMPTY_VAR                             4  ~7      !1
          7        CONCAT                                           ~8      '%3Cbr%3ESet%3A', ~7
          8        ECHO                                                     ~8
   11     9      > RETURN                                                   1

Function mycheck:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UopGW
function name:  myCheck
number of ops:  4
compiled vars:  !0 = $in
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ISSET_ISEMPTY_CV                                 ~1      !0
          2      > RETURN                                                   ~1
          3*     > RETURN                                                   null

End of function mycheck

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.47 ms | 1393 KiB | 13 Q