3v4l.org

run code in 300+ PHP versions simultaneously
<?php [$major, $minor] = explode('.', '11.x-dev'); echo $minor + 1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/54Wc2
function name:  (null)
number of ops:  12
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.x-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      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.38 ms | 1441 KiB | 14 Q