3v4l.org

run code in 300+ PHP versions simultaneously
<?php $isset = true; $array = array(); $notSetArray = array(0=>''); $string = ''; // Test Source function Test9_2() { global $isset; /* The Test */ $t = microtime(true); while($i < 2000) { empty($isset); ++$i; } return (microtime(true) - $t); } // Variable Clean-up function Test9_End() { global $isset, $array, $string; unset($isset, $array, $string); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nnI34
function name:  (null)
number of ops:  5
compiled vars:  !0 = $isset, !1 = $array, !2 = $notSetArray, !3 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <true>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    6     3        ASSIGN                                                   !3, ''
   26     4      > RETURN                                                   1

Function test9_2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 6
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 6
Branch analysis from position: 11
Branch analysis from position: 6
filename:       /in/nnI34
function name:  Test9_2
number of ops:  17
compiled vars:  !0 = $isset, !1 = $t, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   BIND_GLOBAL                                              !0, 'isset'
   13     1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   14     5      > JMP                                                      ->9
   15     6    >   ISSET_ISEMPTY_CV                                 ~5      !0
          7        FREE                                                     ~5
   16     8        PRE_INC                                                  !2
   14     9    >   IS_SMALLER                                               !2, 2000
         10      > JMPNZ                                                    ~7, ->6
   19    11    >   INIT_FCALL                                               'microtime'
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $8      
         14        SUB                                              ~9      $8, !1
         15      > RETURN                                                   ~9
   20    16*     > RETURN                                                   null

End of function test9_2

Function test9_end:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nnI34
function name:  Test9_End
number of ops:  7
compiled vars:  !0 = $isset, !1 = $array, !2 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   BIND_GLOBAL                                              !0, 'isset'
          1        BIND_GLOBAL                                              !1, 'array'
          2        BIND_GLOBAL                                              !2, 'string'
   25     3        UNSET_CV                                                 !0
          4        UNSET_CV                                                 !1
          5        UNSET_CV                                                 !2
   26     6      > RETURN                                                   null

End of function test9_end

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.5 ms | 1396 KiB | 15 Q