3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.17 ms | 1394 KiB | 19 Q