3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Tracking { function __construct($client_id) {} function createIdent($charcount) { $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; $x = 0; while ($x <= $charcount) { $ident .= substr($chars, mt_rand(0, strlen($chars) - 1), 1); $x++; } return $ident; } } $tracking = new Tracking(1477); echo $tracking->createIdent(7);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fOrX3
function name:  (null)
number of ops:  9
compiled vars:  !0 = $tracking
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   NEW                                              $1      'Tracking'
          1        SEND_VAL_EX                                              1477
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   24     4        INIT_METHOD_CALL                                         !0, 'createIdent'
          5        SEND_VAL_EX                                              7
          6        DO_FCALL                                      0  $4      
          7        ECHO                                                     $4
          8      > RETURN                                                   1

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

End of function __construct

Function createident:
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 = 4
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 4
Branch analysis from position: 19
Branch analysis from position: 4
filename:       /in/fOrX3
function name:  createIdent
number of ops:  21
compiled vars:  !0 = $charcount, !1 = $chars, !2 = $x, !3 = $ident
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        ASSIGN                                                   !1, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
   10     2        ASSIGN                                                   !2, 0
   11     3      > JMP                                                      ->17
   12     4    >   INIT_FCALL                                               'substr'
          5        SEND_VAR                                                 !1
          6        INIT_FCALL                                               'mt_rand'
          7        SEND_VAL                                                 0
          8        STRLEN                                           ~6      !1
          9        SUB                                              ~7      ~6, 1
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                         $8      
         12        SEND_VAR                                                 $8
         13        SEND_VAL                                                 1
         14        DO_ICALL                                         $9      
         15        ASSIGN_OP                                     8          !3, $9
   13    16        PRE_INC                                                  !2
   11    17    >   IS_SMALLER_OR_EQUAL                                      !2, !0
         18      > JMPNZ                                                    ~12, ->4
   16    19    > > RETURN                                                   !3
   17    20*     > RETURN                                                   null

End of function createident

End of class Tracking.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.63 ms | 1400 KiB | 17 Q