3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = 'Jason'; list($fname,$lname) = preg_split('/\s+(?=[^\s]+$)/', $name, 2); echo "First Name: $fname, Last Name: $lname";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fModF
function name:  (null)
number of ops:  17
compiled vars:  !0 = $name, !1 = $fname, !2 = $lname
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Jason'
    4     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2F%5Cs%2B%28%3F%3D%5B%5E%5Cs%5D%2B%24%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 2
          5        DO_ICALL                                         $4      
          6        FETCH_LIST_R                                     $5      $4, 0
          7        ASSIGN                                                   !1, $5
          8        FETCH_LIST_R                                     $7      $4, 1
          9        ASSIGN                                                   !2, $7
         10        FREE                                                     $4
    5    11        ROPE_INIT                                     4  ~10     'First+Name%3A+'
         12        ROPE_ADD                                      1  ~10     ~10, !1
         13        ROPE_ADD                                      2  ~10     ~10, '%2C+Last+Name%3A+'
         14        ROPE_END                                      3  ~9      ~10, !2
         15        ECHO                                                     ~9
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.65 ms | 1394 KiB | 15 Q