3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(phpversion() < 50000){ 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 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mo8M1
function name:  (null)
number of ops:  24
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'phpversion'
          1        DO_ICALL                                         $0      
          2        IS_SMALLER                                               $0, 50000
          3      > JMPZ                                                     ~1, ->5
    3     4    > > EXIT                                                     
    5     5    >   INIT_FCALL                                               'print_r'
          6        INIT_FCALL                                               'time'
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'define'
         11        SEND_VAL                                                 'FOO'
         12        INIT_FCALL                                               'time'
         13        DO_ICALL                                         $4      
         14        SEND_VAR                                                 $4
         15        DO_ICALL                                                 
   10    16        INIT_FCALL                                               'sleep'
         17        SEND_VAL                                                 5
         18        DO_ICALL                                                 
   11    19        INIT_FCALL                                               'print_r'
         20        FETCH_STATIC_PROP_R          unknown             ~7      'BAZ'
         21        SEND_VAL                                                 ~7
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Class BAR: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.34 ms | 1395 KiB | 23 Q