3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($args) { implode(',', $args); } $a = range(1, 10000); for ($i = 0; $i < 1000; $i++) { foo($a); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
Branch analysis from position: 7
filename:       /in/lC2fc
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 10000
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    9     5        ASSIGN                                                   !1, 0
          6      > JMP                                                      ->11
   10     7    >   INIT_FCALL                                               'foo'
          8        SEND_VAR                                                 !0
          9        DO_FCALL                                      0          
    9    10        PRE_INC                                                  !1
         11    >   IS_SMALLER                                               !1, 1000
         12      > JMPNZ                                                    ~7, ->7
   11    13    > > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lC2fc
function name:  foo
number of ops:  6
compiled vars:  !0 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'implode'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    5     5      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.28 ms | 1398 KiB | 18 Q