3v4l.org

run code in 300+ PHP versions simultaneously
<?php $host = 'host.dupa.com'; $parts = explode('.', strrev($host), 2); echo strrev($parts[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BJBFL
function name:  (null)
number of ops:  16
compiled vars:  !0 = $host, !1 = $parts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'host.dupa.com'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '.'
          3        INIT_FCALL                                               'strrev'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        SEND_VAL                                                 2
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !1, $4
    7    10        INIT_FCALL                                               'strrev'
         11        FETCH_DIM_R                                      ~6      !1, 0
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                         $7      
         14        ECHO                                                     $7
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.24 ms | 1394 KiB | 17 Q