3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); var_dump(ini_get('display_errors')); function echoIsSet(&$var) { if(isset($var)) { echo $var; } } $exist = "hi"; echoIsSet($exist); echoIsSet($notexist);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TReqI
function name:  (null)
number of ops:  17
compiled vars:  !0 = $exist, !1 = $notexist
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'ini_get'
          5        SEND_VAL                                                 'display_errors'
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                                 
    8     9        ASSIGN                                                   !0, 'hi'
    9    10        INIT_FCALL                                               'echoisset'
         11        SEND_REF                                                 !0
         12        DO_FCALL                                      0          
   10    13        INIT_FCALL                                               'echoisset'
         14        SEND_REF                                                 !1
         15        DO_FCALL                                      0          
         16      > RETURN                                                   1

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

End of function echoisset

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.84 ms | 1398 KiB | 21 Q