3v4l.org

run code in 300+ PHP versions simultaneously
<?php // In response to http://www.php.net/manual/en/language.constants.predefined.php#113130 // In fact, you can define magic constants too. (@__DIR__ == '__DIR__') && define('__DIR__', dirname(__FILE__)); echo "result of var_dump(__DIR__):\r\n"; var_dump(__DIR__); var_dump(php_version());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l0VmJ
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   BEGIN_SILENCE                                    ~0      
          1        END_SILENCE                                              ~0
    7     2        ECHO                                                     'result+of+var_dump%28__DIR__%29%3A%0D%0A'
    8     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAL                                                 '%2Fin'
          5        DO_ICALL                                                 
   10     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL_BY_NAME                                       'php_version'
          8        DO_FCALL                                      0  $2      
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.07 ms | 1394 KiB | 15 Q