3v4l.org

run code in 300+ PHP versions simultaneously
<?php $h = '2+color-01.png'; echo reset(explode('+', $h)); echo end(explode('+', $h));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RLYOG
function name:  (null)
number of ops:  18
compiled vars:  !0 = $h
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2%2Bcolor-01.png'
    3     1        INIT_FCALL                                               'reset'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%2B'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR_NO_REF                               0          $2
          7        DO_ICALL                                         $3      
          8        ECHO                                                     $3
    4     9        INIT_FCALL                                               'end'
         10        INIT_FCALL                                               'explode'
         11        SEND_VAL                                                 '%2B'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $4      
         14        SEND_VAR_NO_REF                               0          $4
         15        DO_ICALL                                         $5      
         16        ECHO                                                     $5
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.08 ms | 1394 KiB | 19 Q