3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.43 ms | 1386 KiB | 15 Q