3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = implode(', ', array_slice(array(USA), -2)); var_dump($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q5dmX
function name:  (null)
number of ops:  15
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'implode'
          1        SEND_VAL                                                 '%2C+'
          2        INIT_FCALL                                               'array_slice'
          3        FETCH_CONSTANT                                   ~1      'USA'
          4        INIT_ARRAY                                       ~2      ~1
          5        SEND_VAL                                                 ~2
          6        SEND_VAL                                                 -2
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !0, $4
    4    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.59 ms | 1394 KiB | 19 Q