3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); $null = null; foreach (range(1, 10000) as $f) { is_null(null); } var_dump(microtime(true) - start);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/E2g6t
function name:  (null)
number of ops:  24
compiled vars:  !0 = $start, !1 = $null, !2 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    5     4        ASSIGN                                                   !1, null
    7     5        INIT_FCALL                                               'range'
          6        SEND_VAL                                                 1
          7        SEND_VAL                                                 10000
          8        DO_ICALL                                         $6      
          9      > FE_RESET_R                                       $7      $6, ->14
         10    > > FE_FETCH_R                                               $7, !2, ->14
    9    11    >   TYPE_CHECK                                    2  ~8      null
         12        FREE                                                     ~8
    7    13      > JMP                                                      ->10
         14    >   FE_FREE                                                  $7
   12    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'microtime'
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $9      
         19        FETCH_CONSTANT                                   ~10     'start'
         20        SUB                                              ~11     $9, ~10
         21        SEND_VAL                                                 ~11
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.06 ms | 1395 KiB | 19 Q