3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timestart = microtime( true ); $string = "This is an?example string"; for( $i=0; $i<=100; $i++ ) { $result = time(); } $timeend = microtime( true ); $timetotal = $timeend - $timestart; $r = number_format( $timetotal, 5 ); echo $r; echo $result;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
Branch analysis from position: 7
filename:       /in/KFLg9
function name:  (null)
number of ops:  27
compiled vars:  !0 = $timestart, !1 = $string, !2 = $i, !3 = $result, !4 = $timeend, !5 = $timetotal, !6 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $7      
          3        ASSIGN                                                   !0, $7
    3     4        ASSIGN                                                   !1, 'This+is+an%3Fexample+string'
    4     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->11
    5     7    >   INIT_FCALL                                               'time'
          8        DO_ICALL                                         $11     
          9        ASSIGN                                                   !3, $11
    4    10        PRE_INC                                                  !2
         11    >   IS_SMALLER_OR_EQUAL                                      !2, 100
         12      > JMPNZ                                                    ~14, ->7
    7    13    >   INIT_FCALL                                               'microtime'
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $15     
         16        ASSIGN                                                   !4, $15
    8    17        SUB                                              ~17     !4, !0
         18        ASSIGN                                                   !5, ~17
    9    19        INIT_FCALL                                               'number_format'
         20        SEND_VAR                                                 !5
         21        SEND_VAL                                                 5
         22        DO_ICALL                                         $19     
         23        ASSIGN                                                   !6, $19
   10    24        ECHO                                                     !6
   11    25        ECHO                                                     !3
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.7 ms | 1395 KiB | 19 Q