3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = "AWK-JES-0099"; $parts = explode("-",$str1); echo sprintf($parts[0] . '-' . $parts[1] . '-', $parts[2]+1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8W1Mq
function name:  (null)
number of ops:  19
compiled vars:  !0 = $str1, !1 = $parts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'AWK-JES-0099'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '-'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    6     6        INIT_FCALL                                               'sprintf'
          7        FETCH_DIM_R                                      ~5      !1, 0
          8        CONCAT                                           ~6      ~5, '-'
          9        FETCH_DIM_R                                      ~7      !1, 1
         10        CONCAT                                           ~8      ~6, ~7
         11        CONCAT                                           ~9      ~8, '-'
         12        SEND_VAL                                                 ~9
         13        FETCH_DIM_R                                      ~10     !1, 2
         14        ADD                                              ~11     ~10, 1
         15        SEND_VAL                                                 ~11
         16        DO_ICALL                                         $12     
         17        ECHO                                                     $12
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.16 ms | 1394 KiB | 17 Q