3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timestart = microtime( true ); $string = "This is an?example string"; for( $i=0; $i<=10; $i++ ) $result = strtok( '?', $string ); $timeend = microtime( true ); $timetotal = $timeend - $timestart; $r = number_format( $timetotal, 3 ); echo $r; echo $result;
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 = 7
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 7
Branch analysis from position: 15
Branch analysis from position: 7
filename:       /in/btRnu
function name:  (null)
number of ops:  29
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                                                      ->13
    5     7    >   INIT_FCALL                                               'strtok'
          8        SEND_VAL                                                 '%3F'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $11     
         11        ASSIGN                                                   !3, $11
    4    12        PRE_INC                                                  !2
         13    >   IS_SMALLER_OR_EQUAL                                      !2, 10
         14      > JMPNZ                                                    ~14, ->7
    6    15    >   INIT_FCALL                                               'microtime'
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                         $15     
         18        ASSIGN                                                   !4, $15
    7    19        SUB                                              ~17     !4, !0
         20        ASSIGN                                                   !5, ~17
    8    21        INIT_FCALL                                               'number_format'
         22        SEND_VAR                                                 !5
         23        SEND_VAL                                                 3
         24        DO_ICALL                                         $19     
         25        ASSIGN                                                   !6, $19
    9    26        ECHO                                                     !6
   10    27        ECHO                                                     !3
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.92 ms | 1396 KiB | 19 Q