3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("SCRIPT_URL", ""); function ifScriptFolder() { if( !empty(SCRIPT_URL)) { echo "/".SCRIPT_URL."/"; } else { echo "/"; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H6oI4
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'SCRIPT_URL'
          2        SEND_VAL                                                 ''
          3        DO_ICALL                                                 
    9     4      > RETURN                                                   1

Function ifscriptfolder:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H6oI4
function name:  ifScriptFolder
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_CONSTANT                                   ~0      'SCRIPT_URL'
          1        BOOL_NOT                                         ~1      ~0
          2        BOOL_NOT                                         ~2      ~1
          3      > JMPZ                                                     ~2, ->9
    5     4    >   FETCH_CONSTANT                                   ~3      'SCRIPT_URL'
          5        CONCAT                                           ~4      '%2F', ~3
          6        CONCAT                                           ~5      ~4, '%2F'
          7        ECHO                                                     ~5
          8      > JMP                                                      ->10
    7     9    >   ECHO                                                     '%2F'
    9    10    > > RETURN                                                   null

End of function ifscriptfolder

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.52 ms | 1399 KiB | 15 Q