3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = microtime(true); for($i = 0; $i < 100000; $i++) { $a = rand(1, 100); $b = rand(1, 100); $c = $a == $b; } echo sprintf("%f seconds", microtime(true) - $s);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 6
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 6
Branch analysis from position: 21
Branch analysis from position: 6
filename:       /in/Eo15l
function name:  (null)
number of ops:  31
compiled vars:  !0 = $s, !1 = $i, !2 = $a, !3 = $b, !4 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !0, $5
    3     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->19
    4     6    >   INIT_FCALL                                               'rand'
          7        SEND_VAL                                                 1
          8        SEND_VAL                                                 100
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
    5    11        INIT_FCALL                                               'rand'
         12        SEND_VAL                                                 1
         13        SEND_VAL                                                 100
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !3, $10
    6    16        IS_EQUAL                                         ~12     !2, !3
         17        ASSIGN                                                   !4, ~12
    3    18        PRE_INC                                                  !1
         19    >   IS_SMALLER                                               !1, 100000
         20      > JMPNZ                                                    ~15, ->6
    8    21    >   INIT_FCALL                                               'sprintf'
         22        SEND_VAL                                                 '%25f+seconds'
         23        INIT_FCALL                                               'microtime'
         24        SEND_VAL                                                 <true>
         25        DO_ICALL                                         $16     
         26        SUB                                              ~17     $16, !0
         27        SEND_VAL                                                 ~17
         28        DO_ICALL                                         $18     
         29        ECHO                                                     $18
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.69 ms | 1388 KiB | 19 Q