3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename = 'achieve3000_Gestalt_students102713.txt'; $nameParts = explode('_', $filename); array_splice($nameParts, 0, 1); $newName = implode('_', $nameParts); var_dump($newName);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QQni6
function name:  (null)
number of ops:  20
compiled vars:  !0 = $filename, !1 = $nameParts, !2 = $newName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'achieve3000_Gestalt_students102713.txt'
    6     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '_'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    8     6        INIT_FCALL                                               'array_splice'
          7        SEND_REF                                                 !1
          8        SEND_VAL                                                 0
          9        SEND_VAL                                                 1
         10        DO_ICALL                                                 
    9    11        INIT_FCALL                                               'implode'
         12        SEND_VAL                                                 '_'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $7      
         15        ASSIGN                                                   !2, $7
   11    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.57 ms | 1386 KiB | 21 Q