3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} $date_1 = microtime(TRUE); for ($i = 0; $i < 100; $i++) { $obj = new a(); } $date_2 = microtime(TRUE); echo $date_2 - $date_1; debug_zval_dump($obj);
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/1QMUC
function name:  (null)
number of ops:  22
compiled vars:  !0 = $date_1, !1 = $i, !2 = $obj, !3 = $date_2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    6     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->10
    7     6    >   NEW                                              $7      'a'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $7
    6     9        PRE_INC                                                  !1
         10    >   IS_SMALLER                                               !1, 100
         11      > JMPNZ                                                    ~11, ->6
   10    12    >   INIT_FCALL                                               'microtime'
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $12     
         15        ASSIGN                                                   !3, $12
   12    16        SUB                                              ~14     !3, !0
         17        ECHO                                                     ~14
   15    18        INIT_FCALL                                               'debug_zval_dump'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.6 ms | 1395 KiB | 17 Q