3v4l.org

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

Class BAR: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.99 ms | 1394 KiB | 21 Q