3v4l.org

run code in 500+ PHP versions simultaneously
<?php $d = 201511; $year = substr($d,0,4); $month = substr($d,-2); $reverse = $month.$year; echo $reverse;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1LMVj
function name:  (null)
number of ops:  10
compiled vars:  !0 = $d, !1 = $year, !2 = $month, !3 = $reverse
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 201511
    5     1        FRAMELESS_ICALL_3                substr              ~5      !0, 0
          2        OP_DATA                                                      4
          3        ASSIGN                                                       !1, ~5
    6     4        FRAMELESS_ICALL_2                substr              ~7      !0, -2
          5        ASSIGN                                                       !2, ~7
    8     6        CONCAT                                               ~9      !2, !1
          7        ASSIGN                                                       !3, ~9
    9     8        ECHO                                                         !3
   10     9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.78 ms | 2013 KiB | 13 Q