3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { return 12; } $s = microtime(true); for ($i = 0; $i < 1000; $i++) { $str = ''; for ($k = 0; $k < 280; $k++) { $str .= chr(foo()); } } $e = microtime(true); echo ($e - $s) . " Seconds\n";
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
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 9
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 6
Branch analysis from position: 21
Branch analysis from position: 6
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 9
Branch analysis from position: 18
Branch analysis from position: 9
filename:       /in/fhtvd
function name:  (null)
number of ops:  29
compiled vars:  !0 = $s, !1 = $i, !2 = $str, !3 = $k, !4 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !0, $5
    8     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->19
    9     6    >   ASSIGN                                                   !2, ''
   10     7        ASSIGN                                                   !3, 0
          8      > JMP                                                      ->16
   11     9    >   INIT_FCALL                                               'chr'
         10        INIT_FCALL                                               'foo'
         11        DO_FCALL                                      0  $10     
         12        SEND_VAR                                                 $10
         13        DO_ICALL                                         $11     
         14        ASSIGN_OP                                     8          !2, $11
   10    15        PRE_INC                                                  !3
         16    >   IS_SMALLER                                               !3, 280
         17      > JMPNZ                                                    ~14, ->9
    8    18    >   PRE_INC                                                  !1
         19    >   IS_SMALLER                                               !1, 1000
         20      > JMPNZ                                                    ~16, ->6
   14    21    >   INIT_FCALL                                               'microtime'
         22        SEND_VAL                                                 <true>
         23        DO_ICALL                                         $17     
         24        ASSIGN                                                   !4, $17
   16    25        SUB                                              ~19     !4, !0
         26        CONCAT                                           ~20     ~19, '+Seconds%0A'
         27        ECHO                                                     ~20
         28      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fhtvd
function name:  foo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   12
    5     1*     > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.89 ms | 1399 KiB | 18 Q