3v4l.org

run code in 500+ 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:  26
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                                                   'array_slice'
          2        INIT_FCALL                                                   'explode'
          3        SEND_VAL                                                     '+'
          4        SEND_VAR                                                     !0
          5        DO_ICALL                                             $2      
          6        SEND_VAR                                                     $2
          7        SEND_VAL                                                     0
          8        SEND_VAL                                                     2
          9        DO_ICALL                                             $3      
         10        FRAMELESS_ICALL_2                implode             ~4      '+', $3
         11        ECHO                                                         ~4
    5    12        ECHO                                                         '%0A'
    6    13        ASSIGN                                                       !0, 'Second+example+from+this+part+12+t%2Fm+22+it+has+to+be+removed'
    7    14        INIT_FCALL                                                   'array_slice'
         15        INIT_FCALL                                                   'explode'
         16        SEND_VAL                                                     '+'
         17        SEND_VAR                                                     !0
         18        DO_ICALL                                             $6      
         19        SEND_VAR                                                     $6
         20        SEND_VAL                                                     0
         21        SEND_VAL                                                     2
         22        DO_ICALL                                             $7      
         23        FRAMELESS_ICALL_2                implode             ~8      '+', $7
         24        ECHO                                                         ~8
         25      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.15 ms | 2530 KiB | 15 Q