3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
275.4 ms | 1396 KiB | 20 Q