3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (version_compare(PHP_VERSION, '5.0.0', '>=')) { exit; } print_r(time()); define('FOO', time()); class BAR{ public static $BAZ = FOO; } sleep(5); print_r(BAR::$BAZ);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SVorY
function name:  (null)
number of ops:  26
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'version_compare'
          1        SEND_VAL                                                 '8.0.0'
          2        SEND_VAL                                                 '5.0.0'
          3        SEND_VAL                                                 '%3E%3D'
          4        DO_ICALL                                         $0      
          5      > JMPZ                                                     $0, ->7
    3     6    > > EXIT                                                     
    5     7    >   INIT_FCALL                                               'print_r'
          8        INIT_FCALL                                               'time'
          9        DO_ICALL                                         $1      
         10        SEND_VAR                                                 $1
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'define'
         13        SEND_VAL                                                 'FOO'
         14        INIT_FCALL                                               'time'
         15        DO_ICALL                                         $3      
         16        SEND_VAR                                                 $3
         17        DO_ICALL                                                 
   10    18        INIT_FCALL                                               'sleep'
         19        SEND_VAL                                                 5
         20        DO_ICALL                                                 
   11    21        INIT_FCALL                                               'print_r'
         22        FETCH_STATIC_PROP_R          unknown             ~6      'BAZ'
         23        SEND_VAL                                                 ~6
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Class BAR: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.23 ms | 1395 KiB | 23 Q