3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.78 ms | 1395 KiB | 17 Q