3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (defined('__DIR__') ? '__DIR__ is defined' : '__DIR__ is NOT defined' . PHP_EOL); echo (defined('__FILE__') ? '__FILE__ is defined' : '__FILE__ is NOT defined' . PHP_EOL); echo (defined('PHP_VERSION') ? 'PHP_VERSION is defined' : 'PHP_VERSION is NOT defined') . PHP_EOL; echo 'PHP Version: ' . PHP_VERSION . PHP_EOL;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 4
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
Branch analysis from position: 15
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
Branch analysis from position: 10
filename:       /in/OJtCb
function name:  (null)
number of ops:  20
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DEFINED                                                  '__DIR__'
          1      > JMPZ                                                     ~0, ->4
          2    >   QM_ASSIGN                                        ~1      '__DIR__+is+defined'
          3      > JMP                                                      ->5
          4    >   QM_ASSIGN                                        ~1      '__DIR__+is+NOT+defined%0A'
          5    >   ECHO                                                     ~1
    3     6        DEFINED                                                  '__FILE__'
          7      > JMPZ                                                     ~2, ->10
          8    >   QM_ASSIGN                                        ~3      '__FILE__+is+defined'
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~3      '__FILE__+is+NOT+defined%0A'
         11    >   ECHO                                                     ~3
    4    12      > JMPZ                                                     <true>, ->15
         13    >   QM_ASSIGN                                        ~4      'PHP_VERSION+is+defined'
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~4      'PHP_VERSION+is+NOT+defined'
         16    >   CONCAT                                           ~5      ~4, '%0A'
         17        ECHO                                                     ~5
    5    18        ECHO                                                     'PHP+Version%3A+8.0.0%0A'
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.75 ms | 1395 KiB | 13 Q