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 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 7
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 7
Branch analysis from position: 15
Branch analysis from position: 7
filename:       /in/nBL5h
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, 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                                                      ->13
    7     7    >   FETCH_R                      global              ~8      '_GET'
          8        FETCH_DIM_R                                      ~9      ~8, 'a'
          9        JMP_SET                                          ~10     ~9, ->11
         10        QM_ASSIGN                                        ~10     'home'
         11        ASSIGN                                                   !3, ~10
    6    12        PRE_INC                                                  !2
         13    >   IS_SMALLER                                               !2, !0
         14      > JMPNZ                                                    ~13, ->7
   10    15    >   INIT_FCALL                                               'round'
         16        INIT_FCALL                                               'microtime'
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $14     
         19        SUB                                              ~15     $14, !1
         20        SEND_VAL                                                 ~15
         21        SEND_VAL                                                 5
         22        DO_ICALL                                         $16     
         23        ECHO                                                     $16
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.34 ms | 1395 KiB | 17 Q