3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t0 = hrtime(true); for ($i = 0; $i < 1000000; $i++) { new stdClass(); } var_dump((hrtime(true) - $t0) / 1e+6);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
Branch analysis from position: 6
filename:       /in/j301h
function name:  (null)
number of ops:  21
compiled vars:  !0 = $t0, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'hrtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->10
    6     6    >   NEW                                              $5      'stdClass'
          7        DO_FCALL                                      0          
          8        FREE                                                     $5
    5     9        PRE_INC                                                  !1
         10    >   IS_SMALLER                                               !1, 1000000
         11      > JMPNZ                                                    ~8, ->6
    9    12    >   INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'hrtime'
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $9      
         16        SUB                                              ~10     $9, !0
         17        DIV                                              ~11     ~10, 1.0e+6
         18        SEND_VAL                                                 ~11
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.33 ms | 1437 KiB | 15 Q