3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "foo:bar"; $arr = array(); $arr[] = trim( end( explode( ":", $str ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z88vU
function name:  (null)
number of ops:  15
compiled vars:  !0 = $str, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'foo%3Abar'
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'trim'
          3        INIT_FCALL                                               'end'
          4        INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '%3A'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        SEND_VAR_NO_REF                               0          $5
          9        DO_ICALL                                         $6      
         10        SEND_VAR                                                 $6
         11        DO_ICALL                                         $7      
         12        ASSIGN_DIM                                               !1
         13        OP_DATA                                                  $7
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.59 ms | 1394 KiB | 19 Q