3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = time(); sleep(1); $var2 = time(); echo $var2 - $var1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5l6ZY
function name:  (null)
number of ops:  12
compiled vars:  !0 = $var, !1 = $var2, !2 = $var1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $3      
          2        ASSIGN                                                   !0, $3
    3     3        INIT_FCALL                                               'sleep'
          4        SEND_VAL                                                 1
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'time'
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !1, $6
    5     9        SUB                                              ~8      !1, !2
         10        ECHO                                                     ~8
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.32 ms | 1385 KiB | 17 Q