3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'CORN FUTURE May14'; $data = preg_split('\s', $s); array_pop($data); $name = trim(implode(' ', $data)); echo $name;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fvWmX
function name:  (null)
number of ops:  19
compiled vars:  !0 = $s, !1 = $data, !2 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'CORN+FUTURE+++++++May14'
    4     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%5Cs'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        INIT_FCALL                                               'array_pop'
          7        SEND_REF                                                 !1
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'trim'
         10        INIT_FCALL                                               'implode'
         11        SEND_VAL                                                 '+'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        DO_ICALL                                         $8      
         16        ASSIGN                                                   !2, $8
    7    17        ECHO                                                     !2
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.82 ms | 1394 KiB | 21 Q