3v4l.org

run code in 300+ PHP versions simultaneously
<?php function siteURL() { return "http://example.com/dir/"; } define('SITE_URL', siteURL()); //returns http://example.com/dir/ define('CKEDITOR', SITE_URL.'plugins/ckeditor/ckeditor.js'); echo str_replace(SITE_URL,'',CKEDITOR);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pCnJu
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     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                                                 
    9     6        INIT_FCALL                                               'define'
          7        SEND_VAL                                                 'CKEDITOR'
          8        FETCH_CONSTANT                                   ~2      'SITE_URL'
          9        CONCAT                                           ~3      ~2, 'plugins%2Fckeditor%2Fckeditor.js'
         10        SEND_VAL                                                 ~3
         11        DO_ICALL                                                 
   13    12        INIT_FCALL                                               'str_replace'
         13        FETCH_CONSTANT                                   ~5      'SITE_URL'
         14        SEND_VAL                                                 ~5
         15        SEND_VAL                                                 ''
         16        FETCH_CONSTANT                                   ~6      'CKEDITOR'
         17        SEND_VAL                                                 ~6
         18        DO_ICALL                                         $7      
         19        ECHO                                                     $7
         20      > RETURN                                                   1

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

End of function siteurl

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.43 ms | 1398 KiB | 18 Q