3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.25 ms | 1400 KiB | 15 Q