3v4l.org

run code in 300+ PHP versions simultaneously
<?php function siteURL() { return "http://www.luntech.com?dev=desktop&name=value"; } define('SITE_URL', siteURL()); //returns http://example.com/dir/ define('CKEDITOR', 'http://m.luntech.com/default.asp?dev=mobile&name=value'); // ignore the previous code is just to emulate your constants and functions // the answer is the following line: echo str_replace(SITE_URL,'',CKEDITOR); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PmU4F
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'SITE_URL'
          2        INIT_FCALL                                               'siteurl'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    8     6        INIT_FCALL                                               'define'
          7        SEND_VAL                                                 'CKEDITOR'
          8        SEND_VAL                                                 'http%3A%2F%2Fm.luntech.com%2Fdefault.asp%3Fdev%3Dmobile%26name%3Dvalue'
          9        DO_ICALL                                                 
   13    10        INIT_FCALL                                               'str_replace'
         11        FETCH_CONSTANT                                   ~3      'SITE_URL'
         12        SEND_VAL                                                 ~3
         13        SEND_VAL                                                 ''
         14        FETCH_CONSTANT                                   ~4      'CKEDITOR'
         15        SEND_VAL                                                 ~4
         16        DO_ICALL                                         $5      
         17        ECHO                                                     $5
   14    18      > RETURN                                                   1

Function siteurl:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PmU4F
function name:  siteURL
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   'http%3A%2F%2Fwww.luntech.com%3Fdev%3Ddesktop%26name%3Dvalue'
    5     1*     > RETURN                                                   null

End of function siteurl

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159 ms | 1398 KiB | 18 Q