3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iterations = 10000000; $start = microtime(); for ($i=0; $i<$iterations; $i++) { $a = @$_GET['a'] ?: 'home'; } echo round($start - microtime(), 2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 6
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 6
Branch analysis from position: 16
Branch analysis from position: 6
filename:       /in/sVZWG
function name:  (null)
number of ops:  25
compiled vars:  !0 = $iterations, !1 = $start, !2 = $i, !3 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10000000
    4     1        INIT_FCALL                                               'microtime'
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !1, $5
    6     4        ASSIGN                                                   !2, 0
          5      > JMP                                                      ->14
    7     6    >   BEGIN_SILENCE                                    ~8      
          7        FETCH_R                      global              ~9      '_GET'
          8        FETCH_DIM_R                                      ~10     ~9, 'a'
          9        END_SILENCE                                              ~8
         10        JMP_SET                                          ~11     ~10, ->12
         11        QM_ASSIGN                                        ~11     'home'
         12        ASSIGN                                                   !3, ~11
    6    13        PRE_INC                                                  !2
         14    >   IS_SMALLER                                               !2, !0
         15      > JMPNZ                                                    ~14, ->6
   10    16    >   INIT_FCALL                                               'round'
         17        INIT_FCALL                                               'microtime'
         18        DO_ICALL                                         $15     
         19        SUB                                              ~16     !1, $15
         20        SEND_VAL                                                 ~16
         21        SEND_VAL                                                 2
         22        DO_ICALL                                         $17     
         23        ECHO                                                     $17
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.79 ms | 1395 KiB | 17 Q