3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = microtime(true); intdiv(10, 3); echo microtime(true) - $t; echo "\n"; $t = microtime(true); (int) 10 / 3; echo microtime(true) - $t;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/saPWK
function name:  (null)
number of ops:  27
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    3     4        INIT_FCALL                                               'intdiv'
          5        SEND_VAL                                                 10
          6        SEND_VAL                                                 3
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'microtime'
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                         $4      
         11        SUB                                              ~5      $4, !0
         12        ECHO                                                     ~5
    5    13        ECHO                                                     '%0A'
    6    14        INIT_FCALL                                               'microtime'
         15        SEND_VAL                                                 <true>
         16        DO_ICALL                                         $6      
         17        ASSIGN                                                   !0, $6
    7    18        CAST                                          4  ~8      10
         19        DIV                                              ~9      ~8, 3
         20        FREE                                                     ~9
    8    21        INIT_FCALL                                               'microtime'
         22        SEND_VAL                                                 <true>
         23        DO_ICALL                                         $10     
         24        SUB                                              ~11     $10, !0
         25        ECHO                                                     ~11
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.9 ms | 1400 KiB | 17 Q