3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'CORN FUTURE May14'; $data = preg_split('/\s/', $s); array_pop($data); $name = implode(' ', $data); echo "'$name'";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KH8lk
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                                                 '%2F%5Cs%2F'
          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                                               'implode'
         10        SEND_VAL                                                 '+'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !2, $7
    7    14        ROPE_INIT                                     3  ~10     '%27'
         15        ROPE_ADD                                      1  ~10     ~10, !2
         16        ROPE_END                                      2  ~9      ~10, '%27'
         17        ECHO                                                     ~9
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.43 ms | 1394 KiB | 19 Q