3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($x) { return $x; } $t = microtime(1); for ($i = 1e7; $i--;) strlen(""); print "strlen: ".(microtime(1) - $t)."\n"; $t = microtime(1); for ($i = 1e7; $i--;) test(""); print "userdefiniert: ".(microtime(1) - $t)."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 6
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 21
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 21
Branch analysis from position: 26
Branch analysis from position: 21
Branch analysis from position: 6
filename:       /in/YpmKZ
function name:  (null)
number of ops:  34
compiled vars:  !0 = $t, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 1
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4        ASSIGN                                                   !1, 1.0e+7
          5      > JMP                                                      ->6
          6    >   POST_DEC                                         ~5      !1
          7      > JMPNZ                                                    ~5, ->6
    8     8    >   INIT_FCALL                                               'microtime'
          9        SEND_VAL                                                 1
         10        DO_ICALL                                         $6      
         11        SUB                                              ~7      $6, !0
         12        CONCAT                                           ~8      'strlen%3A+', ~7
         13        CONCAT                                           ~9      ~8, '%0A'
         14        ECHO                                                     ~9
   10    15        INIT_FCALL                                               'microtime'
         16        SEND_VAL                                                 1
         17        DO_ICALL                                         $10     
         18        ASSIGN                                                   !0, $10
   11    19        ASSIGN                                                   !1, 1.0e+7
         20      > JMP                                                      ->24
   12    21    >   INIT_FCALL                                               'test'
         22        SEND_VAL                                                 ''
         23        DO_FCALL                                      0          
   11    24    >   POST_DEC                                         ~14     !1
         25      > JMPNZ                                                    ~14, ->21
   14    26    >   INIT_FCALL                                               'microtime'
         27        SEND_VAL                                                 1
         28        DO_ICALL                                         $15     
         29        SUB                                              ~16     $15, !0
         30        CONCAT                                           ~17     'userdefiniert%3A+', ~16
         31        CONCAT                                           ~18     ~17, '%0A'
         32        ECHO                                                     ~18
         33      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YpmKZ
function name:  test
number of ops:  3
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1      > RETURN                                                   !0
          2*     > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.35 ms | 1402 KiB | 16 Q