3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 5; $t = microtime(); $b = $a === 5; echo microtime() - $t; echo PHP_EOL; $t = microtime(); $b = 5 === $a; echo microtime() - $t;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/11keh
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $t, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 5
    5     1        INIT_FCALL                                               'microtime'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !1, $4
    6     4        IS_IDENTICAL                                     ~6      !0, 5
          5        ASSIGN                                                   !2, ~6
    8     6        INIT_FCALL                                               'microtime'
          7        DO_ICALL                                         $8      
          8        SUB                                              ~9      $8, !1
          9        ECHO                                                     ~9
   10    10        ECHO                                                     '%0A'
   12    11        INIT_FCALL                                               'microtime'
         12        DO_ICALL                                         $10     
         13        ASSIGN                                                   !1, $10
   14    14        IS_IDENTICAL                                     ~12     !0, 5
         15        ASSIGN                                                   !2, ~12
   16    16        INIT_FCALL                                               'microtime'
         17        DO_ICALL                                         $14     
         18        SUB                                              ~15     $14, !1
         19        ECHO                                                     ~15
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.97 ms | 1395 KiB | 15 Q