3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "First example from this part 10 t/m 16 it has to be removed"; echo implode(" ", array_slice(explode(" ", $string), 0,2)); echo "\n"; $string = "Second example from this part 12 t/m 22 it has to be removed"; echo implode(" ", array_slice(explode(" ", $string), 0,2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/efX1t
function name:  (null)
number of ops:  32
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'First+example+from+this+part+10+t%2Fm+16+it+has+to+be+removed'
    4     1        INIT_FCALL                                               'implode'
          2        SEND_VAL                                                 '+'
          3        INIT_FCALL                                               'array_slice'
          4        INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '+'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        SEND_VAL                                                 0
         10        SEND_VAL                                                 2
         11        DO_ICALL                                         $3      
         12        SEND_VAR                                                 $3
         13        DO_ICALL                                         $4      
         14        ECHO                                                     $4
    5    15        ECHO                                                     '%0A'
    6    16        ASSIGN                                                   !0, 'Second+example+from+this+part+12+t%2Fm+22+it+has+to+be+removed'
    7    17        INIT_FCALL                                               'implode'
         18        SEND_VAL                                                 '+'
         19        INIT_FCALL                                               'array_slice'
         20        INIT_FCALL                                               'explode'
         21        SEND_VAL                                                 '+'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $6      
         24        SEND_VAR                                                 $6
         25        SEND_VAL                                                 0
         26        SEND_VAL                                                 2
         27        DO_ICALL                                         $7      
         28        SEND_VAR                                                 $7
         29        DO_ICALL                                         $8      
         30        ECHO                                                     $8
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.77 ms | 1003 KiB | 16 Q