3v4l.org

run code in 300+ PHP versions simultaneously
<?php $author = 'Jan'; $foo = explode(' ', $author); var_dump($foo); $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/LUF0A
function name:  (null)
number of ops:  21
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'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '+'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    7     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    9     9        INIT_FCALL                                               'reset'
         10        SEND_REF                                                 !1
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !2, $8
   10    13        INIT_FCALL                                               'end'
         14        SEND_REF                                                 !1
         15        DO_ICALL                                         $10     
         16        ASSIGN                                                   !3, $10
   12    17        CONCAT                                           ~12     !2, '+'
         18        CONCAT                                           ~13     ~12, !3
         19        ECHO                                                     ~13
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.76 ms | 1399 KiB | 21 Q