3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'bar'; $t = microtime(true); for ($i=0; $i<10000000; $i++) { is_null($foo); } var_dump(microtime(true) - $t); $t = microtime(true); for ($i=0; $i<10000000; $i++) { $foo === null; } var_dump(microtime(true) - $t);
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 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 25
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 25
Branch analysis from position: 30
Branch analysis from position: 25
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/Z4D6g
function name:  (null)
number of ops:  38
compiled vars:  !0 = $foo, !1 = $t, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'bar'
    4     1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->10
    6     7    >   TYPE_CHECK                                    2  ~7      !0
          8        FREE                                                     ~7
    5     9        PRE_INC                                                  !2
         10    >   IS_SMALLER                                               !2, 10000000
         11      > JMPNZ                                                    ~9, ->7
    8    12    >   INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'microtime'
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $10     
         16        SUB                                              ~11     $10, !1
         17        SEND_VAL                                                 ~11
         18        DO_ICALL                                                 
   10    19        INIT_FCALL                                               'microtime'
         20        SEND_VAL                                                 <true>
         21        DO_ICALL                                         $13     
         22        ASSIGN                                                   !1, $13
   11    23        ASSIGN                                                   !2, 0
         24      > JMP                                                      ->28
   12    25    >   TYPE_CHECK                                    2  ~16     !0
         26        FREE                                                     ~16
   11    27        PRE_INC                                                  !2
         28    >   IS_SMALLER                                               !2, 10000000
         29      > JMPNZ                                                    ~18, ->25
   14    30    >   INIT_FCALL                                               'var_dump'
         31        INIT_FCALL                                               'microtime'
         32        SEND_VAL                                                 <true>
         33        DO_ICALL                                         $19     
         34        SUB                                              ~20     $19, !1
         35        SEND_VAL                                                 ~20
         36        DO_ICALL                                                 
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.11 ms | 1400 KiB | 17 Q