3v4l.org

run code in 300+ PHP versions simultaneously
<?php function generate_some_id($id, $append) { for ($i = strlen($id); $i < 8; $i++) { $id = '0' . $id; } return strtoupper(strtolower(substr($append, 0, 2))) . $id; } echo generate_some_id(12547, 'Lorem ipsum');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r9u3p
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'generate_some_id'
          1        SEND_VAL                                                 12547
          2        SEND_VAL                                                 'Lorem+ipsum'
          3        DO_FCALL                                      0  $0      
          4        ECHO                                                     $0
          5      > RETURN                                                   1

Function generate_some_id:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 5
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 5
Branch analysis from position: 10
Branch analysis from position: 5
filename:       /in/r9u3p
function name:  generate_some_id
number of ops:  24
compiled vars:  !0 = $id, !1 = $append, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        STRLEN                                           ~3      !0
          3        ASSIGN                                                   !2, ~3
          4      > JMP                                                      ->8
    6     5    >   CONCAT                                           ~5      '0', !0
          6        ASSIGN                                                   !0, ~5
    4     7        PRE_INC                                                  !2
          8    >   IS_SMALLER                                               !2, 8
          9      > JMPNZ                                                    ~8, ->5
    9    10    >   INIT_FCALL                                               'strtoupper'
         11        INIT_FCALL                                               'strtolower'
         12        INIT_FCALL                                               'substr'
         13        SEND_VAR                                                 !1
         14        SEND_VAL                                                 0
         15        SEND_VAL                                                 2
         16        DO_ICALL                                         $9      
         17        SEND_VAR                                                 $9
         18        DO_ICALL                                         $10     
         19        SEND_VAR                                                 $10
         20        DO_ICALL                                         $11     
         21        CONCAT                                           ~12     $11, !0
         22      > RETURN                                                   ~12
   10    23*     > RETURN                                                   null

End of function generate_some_id

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.32 ms | 1399 KiB | 20 Q