3v4l.org

run code in 300+ PHP versions simultaneously
<?php [$major, $minor] = explode('.', '11.0-dev'); echo $minor + 1; echo $major + 1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s2Tnh
function name:  (null)
number of ops:  14
compiled vars:  !0 = $major, !1 = $minor
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '.'
          2        SEND_VAL                                                 '11.0-dev'
          3        DO_ICALL                                         $2      
          4        FETCH_LIST_R                                     $3      $2, 0
          5        ASSIGN                                                   !0, $3
          6        FETCH_LIST_R                                     $5      $2, 1
          7        ASSIGN                                                   !1, $5
          8        FREE                                                     $2
    4     9        ADD                                              ~7      !1, 1
         10        ECHO                                                     ~7
    5    11        ADD                                              ~8      !0, 1
         12        ECHO                                                     ~8
    6    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.76 ms | 1450 KiB | 14 Q