3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZjgQO
function name:  (null)
number of ops:  13
compiled vars:  !0 = $phone, !1 = $formatted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ASSIGN                                                   !0, '%28495%29+123-45-00'
   15     1        INIT_FCALL                                               'formatphone'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !1, $3
   17     5        FETCH_DIM_R                                      ~5      !1, 'display'
          6        ROPE_INIT                                     4  ~8      ~5
          7        ROPE_ADD                                      1  ~8      ~8, '%0A'
          8        FETCH_DIM_R                                      ~6      !1, 'link'
          9        ROPE_ADD                                      2  ~8      ~8, ~6
         10        ROPE_END                                      3  ~7      ~8, '%0A'
         11        ECHO                                                     ~7
         12      > RETURN                                                   1

Function formatphone:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/ZjgQO
function name:  formatPhone
number of ops:  53
compiled vars:  !0 = $phone, !1 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5CD%2B%2F'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !1, $2
    5     7        STRLEN                                           ~4      !1
          8        IS_IDENTICAL                                             ~4, 10
          9      > JMPZ                                                     ~5, ->12
    6    10    >   CONCAT                                           ~6      '7', !1
         11        ASSIGN                                                   !1, ~6
    9    12    >   INIT_FCALL                                               'sprintf'
         13        SEND_VAL                                                 '%2B%25s+%28%25s%29+%25s-%25s-%25s'
         14        INIT_FCALL                                               'substr'
         15        SEND_VAR                                                 !1
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 -10
         18        DO_ICALL                                         $8      
         19        SEND_VAR                                                 $8
         20        INIT_FCALL                                               'substr'
         21        SEND_VAR                                                 !1
         22        SEND_VAL                                                 -10
         23        SEND_VAL                                                 3
         24        DO_ICALL                                         $9      
         25        SEND_VAR                                                 $9
         26        INIT_FCALL                                               'substr'
         27        SEND_VAR                                                 !1
         28        SEND_VAL                                                 -7
         29        SEND_VAL                                                 3
         30        DO_ICALL                                         $10     
         31        SEND_VAR                                                 $10
         32        INIT_FCALL                                               'substr'
         33        SEND_VAR                                                 !1
         34        SEND_VAL                                                 -4
         35        SEND_VAL                                                 2
         36        DO_ICALL                                         $11     
         37        SEND_VAR                                                 $11
         38        INIT_FCALL                                               'substr'
         39        SEND_VAR                                                 !1
         40        SEND_VAL                                                 -2
         41        SEND_VAL                                                 2
         42        DO_ICALL                                         $12     
         43        SEND_VAR                                                 $12
         44        DO_ICALL                                         $13     
         45        INIT_ARRAY                                       ~14     $13, 'display'
   10    46        INIT_FCALL                                               'sprintf'
         47        SEND_VAL                                                 'tel%3A%2B%25s'
         48        SEND_VAR                                                 !1
         49        DO_ICALL                                         $15     
         50        ADD_ARRAY_ELEMENT                                ~14     $15, 'link'
         51      > RETURN                                                   ~14
   12    52*     > RETURN                                                   null

End of function formatphone

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
229.9 ms | 976 KiB | 17 Q