3v4l.org

run code in 300+ PHP versions simultaneously
<?php $symbol = AAATX; $prd = strtoupper(str_replace(substr($symbol, -1), '.' . substr($symbol, -1), $symbol)); var_dump($prd);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E3qGh
function name:  (null)
number of ops:  24
compiled vars:  !0 = $symbol, !1 = $prd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_CONSTANT                                   ~2      'AAATX'
          1        ASSIGN                                                   !0, ~2
    3     2        INIT_FCALL                                               'strtoupper'
          3        INIT_FCALL                                               'str_replace'
          4        INIT_FCALL                                               'substr'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 -1
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 -1
         12        DO_ICALL                                         $5      
         13        CONCAT                                           ~6      '.', $5
         14        SEND_VAL                                                 ~6
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $7      
         17        SEND_VAR                                                 $7
         18        DO_ICALL                                         $8      
         19        ASSIGN                                                   !1, $8
    4    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.27 ms | 1395 KiB | 21 Q