3v4l.org

run code in 300+ PHP versions simultaneously
<?php $author = 'Jan Stanisław Nowak'; $foo = explode(' ', $author); $firstName = reset($foo); $lastName = end($foo); echo $firstName . ' ' . $lastName;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LCnj7
function name:  (null)
number of ops:  18
compiled vars:  !0 = $author, !1 = $foo, !2 = $firstName, !3 = $lastName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Jan+Stanis%C5%82aw+Nowak'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '+'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    7     6        INIT_FCALL                                               'reset'
          7        SEND_REF                                                 !1
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !2, $7
    8    10        INIT_FCALL                                               'end'
         11        SEND_REF                                                 !1
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !3, $9
   10    14        CONCAT                                           ~11     !2, '+'
         15        CONCAT                                           ~12     ~11, !3
         16        ECHO                                                     ~12
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.49 ms | 1394 KiB | 19 Q