3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = null; $var = new stdClass(); $time = microtime(true); for ($i = 0; $i <= 1000000; $i++) { if (!$var) {} } $time = microtime(true) - $time; echo "Time using '!': $time\n"; $time = microtime(true); for ($i = 0; $i <= 1000000; $i++) { if ($var === null) {} } $time = microtime(true) - $time; echo "Time using '===': $time\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 10
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 30
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 32
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 30
Branch analysis from position: 35
Branch analysis from position: 30
Branch analysis from position: 32
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 10
Branch analysis from position: 15
Branch analysis from position: 10
Branch analysis from position: 12
filename:       /in/IqK8v
function name:  (null)
number of ops:  45
compiled vars:  !0 = $var, !1 = $time, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    4     1        NEW                                              $4      'stdClass'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
    6     4        INIT_FCALL                                               'microtime'
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !1, $7
    8     8        ASSIGN                                                   !2, 0
          9      > JMP                                                      ->13
    9    10    >   BOOL_NOT                                         ~10     !0
         11      > JMPZ                                                     ~10, ->12
    8    12    >   PRE_INC                                                  !2
         13    >   IS_SMALLER_OR_EQUAL                                      !2, 1000000
         14      > JMPNZ                                                    ~12, ->10
   12    15    >   INIT_FCALL                                               'microtime'
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                         $13     
         18        SUB                                              ~14     $13, !1
         19        ASSIGN                                                   !1, ~14
   14    20        ROPE_INIT                                     3  ~17     'Time+using+%27%21%27%3A+'
         21        ROPE_ADD                                      1  ~17     ~17, !1
         22        ROPE_END                                      2  ~16     ~17, '%0A'
         23        ECHO                                                     ~16
   17    24        INIT_FCALL                                               'microtime'
         25        SEND_VAL                                                 <true>
         26        DO_ICALL                                         $19     
         27        ASSIGN                                                   !1, $19
   19    28        ASSIGN                                                   !2, 0
         29      > JMP                                                      ->33
   20    30    >   TYPE_CHECK                                    2          !0
         31      > JMPZ                                                     ~22, ->32
   19    32    >   PRE_INC                                                  !2
         33    >   IS_SMALLER_OR_EQUAL                                      !2, 1000000
         34      > JMPNZ                                                    ~24, ->30
   23    35    >   INIT_FCALL                                               'microtime'
         36        SEND_VAL                                                 <true>
         37        DO_ICALL                                         $25     
         38        SUB                                              ~26     $25, !1
         39        ASSIGN                                                   !1, ~26
   25    40        ROPE_INIT                                     3  ~29     'Time+using+%27%3D%3D%3D%27%3A+'
         41        ROPE_ADD                                      1  ~29     ~29, !1
         42        ROPE_END                                      2  ~28     ~29, '%0A'
         43        ECHO                                                     ~28
         44      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.28 ms | 1400 KiB | 15 Q