3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Tracking { function __construct($client_id) {} function createIdent($charcount) { $ident = null; $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/vR6Hd
function name:  (null)
number of ops:  9
compiled vars:  !0 = $tracking
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   NEW                                              $1      'Tracking'
          1        SEND_VAL_EX                                              1477
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   25     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/vR6Hd
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 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 5
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 5
Branch analysis from position: 20
Branch analysis from position: 5
filename:       /in/vR6Hd
function name:  createIdent
number of ops:  22
compiled vars:  !0 = $charcount, !1 = $ident, !2 = $chars, !3 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        ASSIGN                                                   !1, null
    9     2        ASSIGN                                                   !2, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
   11     3        ASSIGN                                                   !3, 0
   12     4      > JMP                                                      ->18
   13     5    >   INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !2
          7        INIT_FCALL                                               'mt_rand'
          8        SEND_VAL                                                 0
          9        STRLEN                                           ~7      !2
         10        SUB                                              ~8      ~7, 1
         11        SEND_VAL                                                 ~8
         12        DO_ICALL                                         $9      
         13        SEND_VAR                                                 $9
         14        SEND_VAL                                                 1
         15        DO_ICALL                                         $10     
         16        ASSIGN_OP                                     8          !1, $10
   14    17        PRE_INC                                                  !3
   12    18    >   IS_SMALLER                                               !3, !0
         19      > JMPNZ                                                    ~13, ->5
   17    20    > > RETURN                                                   !1
   18    21*     > RETURN                                                   null

End of function createident

End of class Tracking.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.42 ms | 1392 KiB | 17 Q