3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $time=microtime(true);for($x=0;$x<100000;$x++){ $b = is_null($a);} round(microtime(true)-$time, 5)."\n"; // $a = 1; $time=microtime(true);for($x=0;$x<100000;$x++){ $b = ($a === null);} echo round(microtime(true)-$time, 5)."\n";;
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 = 62) Position 1 = -2
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/QD36n
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a, !1 = $time, !2 = $x, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
          1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
          5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->10
          7    >   TYPE_CHECK                                    2  ~8      !0
          8        ASSIGN                                                   !3, ~8
          9        PRE_INC                                                  !2
         10    >   IS_SMALLER                                               !2, 100000
         11      > JMPNZ                                                    ~11, ->7
         12    >   INIT_FCALL                                               'round'
         13        INIT_FCALL                                               'microtime'
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $12     
         16        SUB                                              ~13     $12, !1
         17        SEND_VAL                                                 ~13
         18        SEND_VAL                                                 5
         19        DO_ICALL                                         $14     
         20        CONCAT                                           ~15     $14, '%0A'
         21        FREE                                                     ~15
    3    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.48 ms | 1395 KiB | 17 Q