3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = "2013AD"; [$year, $jesusStatus] = preg_split('~\d+\K~', $var, 2); var_export($year); echo "\n"; var_export($jesusStatus);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3rlMf
function name:  (null)
number of ops:  19
compiled vars:  !0 = $var, !1 = $year, !2 = $jesusStatus
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2013AD'
    5     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%7E%5Cd%2B%5CK%7E'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 2
          5        DO_ICALL                                         $4      
          6        FETCH_LIST_R                                     $5      $4, 0
          7        ASSIGN                                                   !1, $5
          8        FETCH_LIST_R                                     $7      $4, 1
          9        ASSIGN                                                   !2, $7
         10        FREE                                                     $4
    7    11        INIT_FCALL                                               'var_export'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
    8    14        ECHO                                                     '%0A'
    9    15        INIT_FCALL                                               'var_export'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.97 ms | 998 KiB | 15 Q