3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.59 ms | 1398 KiB | 15 Q