3v4l.org

run code in 300+ PHP versions simultaneously
<?php $null = null; $time = microtime(true); for ($i = 0; $i < 10000000; $i++) { $test = is_null($null); } $time1 = microtime(true); for ($i = 0; $i < 10000000; $i++) { $test = null === $null; } $time2 = microtime(true); echo 'is_null: '.($time1 - $time)."\n===: ".($time2 - $time1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 18
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 18
Branch analysis from position: 23
Branch analysis from position: 18
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
Branch analysis from position: 7
filename:       /in/NRDFN
function name:  (null)
number of ops:  34
compiled vars:  !0 = $null, !1 = $time, !2 = $i, !3 = $test, !4 = $time1, !5 = $time2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    5     1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $7      
          4        ASSIGN                                                   !1, $7
    6     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->10
    7     7    >   TYPE_CHECK                                    2  ~10     !0
          8        ASSIGN                                                   !3, ~10
    6     9        PRE_INC                                                  !2
         10    >   IS_SMALLER                                               !2, 10000000
         11      > JMPNZ                                                    ~13, ->7
   10    12    >   INIT_FCALL                                               'microtime'
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $14     
         15        ASSIGN                                                   !4, $14
   11    16        ASSIGN                                                   !2, 0
         17      > JMP                                                      ->21
   12    18    >   TYPE_CHECK                                    2  ~17     !0
         19        ASSIGN                                                   !3, ~17
   11    20        PRE_INC                                                  !2
         21    >   IS_SMALLER                                               !2, 10000000
         22      > JMPNZ                                                    ~20, ->18
   15    23    >   INIT_FCALL                                               'microtime'
         24        SEND_VAL                                                 <true>
         25        DO_ICALL                                         $21     
         26        ASSIGN                                                   !5, $21
   16    27        SUB                                              ~23     !4, !1
         28        CONCAT                                           ~24     'is_null%3A+', ~23
         29        CONCAT                                           ~25     ~24, '%0A%3D%3D%3D%3A+'
         30        SUB                                              ~26     !5, !4
         31        CONCAT                                           ~27     ~25, ~26
         32        ECHO                                                     ~27
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.63 ms | 1396 KiB | 15 Q