3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variable = "El documento ya ha sido registado anteriormente,su estado es aceptado"; $parts = explode(" ", $variable); $position = array_search("es", $parts); echo implode(" ", array_slice($parts, $position + 1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4Mm3f
function name:  (null)
number of ops:  22
compiled vars:  !0 = $variable, !1 = $parts, !2 = $position
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'El+documento+ya+ha+sido+registado+anteriormente%2Csu+estado+es+aceptado'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '+'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    6     6        INIT_FCALL                                               'array_search'
          7        SEND_VAL                                                 'es'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !2, $6
    7    11        INIT_FCALL                                               'implode'
         12        SEND_VAL                                                 '+'
         13        INIT_FCALL                                               'array_slice'
         14        SEND_VAR                                                 !1
         15        ADD                                              ~8      !2, 1
         16        SEND_VAL                                                 ~8
         17        DO_ICALL                                         $9      
         18        SEND_VAR                                                 $9
         19        DO_ICALL                                         $10     
         20        ECHO                                                     $10
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.3 ms | 1002 KiB | 17 Q