3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('constant', 'value'); class x { static $z = array(); static public function x($z) { self::$z[] = $z; } } foreach(range(1,500000) as $x) { x:x($x); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/pd9WA
function name:  (null)
number of ops:  16
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'constant'
          2        SEND_VAL                                                 'value'
          3        DO_ICALL                                                 
   12     4        INIT_FCALL                                               'range'
          5        SEND_VAL                                                 1
          6        SEND_VAL                                                 500000
          7        DO_ICALL                                         $2      
          8      > FE_RESET_R                                       $3      $2, ->14
          9    > > FE_FETCH_R                                               $3, !0, ->14
   13    10    >   INIT_FCALL_BY_NAME                                       'x'
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0          
   12    13      > JMP                                                      ->9
         14    >   FE_FREE                                                  $3
   14    15      > RETURN                                                   1

Class x:
Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pd9WA
function name:  x
number of ops:  5
compiled vars:  !0 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        FETCH_STATIC_PROP_W          global              $1      'z'
          2        ASSIGN_DIM                                               $1
          3        OP_DATA                                                  !0
    9     4      > RETURN                                                   null

End of function x

End of class x.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.52 ms | 1395 KiB | 17 Q