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 = explode( '?', $string ); $result = $result[0]; } $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 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
Branch analysis from position: 7
filename:       /in/U81KF
function name:  (null)
number of ops:  31
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                                                      ->15
    5     7    >   INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '%3F'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $11     
         11        ASSIGN                                                   !3, $11
    6    12        FETCH_DIM_R                                      ~13     !3, 0
         13        ASSIGN                                                   !3, ~13
    4    14        PRE_INC                                                  !2
         15    >   IS_SMALLER_OR_EQUAL                                      !2, 100
         16      > JMPNZ                                                    ~16, ->7
    8    17    >   INIT_FCALL                                               'microtime'
         18        SEND_VAL                                                 <true>
         19        DO_ICALL                                         $17     
         20        ASSIGN                                                   !4, $17
    9    21        SUB                                              ~19     !4, !0
         22        ASSIGN                                                   !5, ~19
   10    23        INIT_FCALL                                               'number_format'
         24        SEND_VAR                                                 !5
         25        SEND_VAL                                                 5
         26        DO_ICALL                                         $21     
         27        ASSIGN                                                   !6, $21
   11    28        ECHO                                                     !6
   12    29        ECHO                                                     !3
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.83 ms | 1388 KiB | 19 Q