3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 10000000; $foo = 0; $start = microtime(true); for ($i = 0; $i < $count; $i++) { try { $foo++; } catch (\Exception $e) { } } echo microtime(true) - $start;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 8
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 8
Branch analysis from position: 14
Branch analysis from position: 8
Found catch point at position: 10
Branch analysis from position: 10
2 jumps found. (Code = 107) Position 1 = 11, Position 2 = -2
Branch analysis from position: 11
filename:       /in/D29BH
function name:  (null)
number of ops:  20
compiled vars:  !0 = $count, !1 = $foo, !2 = $start, !3 = $i, !4 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10000000
    4     1        ASSIGN                                                   !1, 0
    5     2        INIT_FCALL                                               'microtime'
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !2, $7
    7     6        ASSIGN                                                   !3, 0
          7      > JMP                                                      ->12
    9     8    >   PRE_INC                                                  !1
          9      > JMP                                                      ->11
   10    10  E > > CATCH                                       last         'Exception'
    7    11    >   PRE_INC                                                  !3
         12    >   IS_SMALLER                                               !3, !0
         13      > JMPNZ                                                    ~12, ->8
   14    14    >   INIT_FCALL                                               'microtime'
         15        SEND_VAL                                                 <true>
         16        DO_ICALL                                         $13     
         17        SUB                                              ~14     $13, !2
         18        ECHO                                                     ~14
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.44 ms | 1395 KiB | 15 Q