3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Poland,USA,England,China,Uruguay,Spain,Taiwan,Monaco"; $result = array_slice(explode(',', $str),2, 5); print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ImA3T
function name:  (null)
number of ops:  15
compiled vars:  !0 = $str, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Poland%2CUSA%2CEngland%2CChina%2CUruguay%2CSpain%2CTaiwan%2CMonaco'
    4     1        INIT_FCALL                                               'array_slice'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%2C'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        SEND_VAL                                                 2
          8        SEND_VAL                                                 5
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !1, $4
    5    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
274.28 ms | 1011 KiB | 16 Q