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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.73 ms | 1396 KiB | 21 Q