3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "achieve3000_Gestalt_students102713.txt"; list($prefix, $meat) = explode("_",$str, 2); list($dat, $ext) = explode(".", $meat); echo rtrim($dat, "0123456789"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1VeKH
function name:  (null)
number of ops:  26
compiled vars:  !0 = $str, !1 = $prefix, !2 = $meat, !3 = $dat, !4 = $ext
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'achieve3000_Gestalt_students102713.txt'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '_'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 2
          5        DO_ICALL                                         $6      
          6        FETCH_LIST_R                                     $7      $6, 0
          7        ASSIGN                                                   !1, $7
          8        FETCH_LIST_R                                     $9      $6, 1
          9        ASSIGN                                                   !2, $9
         10        FREE                                                     $6
    5    11        INIT_FCALL                                               'explode'
         12        SEND_VAL                                                 '.'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $11     
         15        FETCH_LIST_R                                     $12     $11, 0
         16        ASSIGN                                                   !3, $12
         17        FETCH_LIST_R                                     $14     $11, 1
         18        ASSIGN                                                   !4, $14
         19        FREE                                                     $11
    6    20        INIT_FCALL                                               'rtrim'
         21        SEND_VAR                                                 !3
         22        SEND_VAL                                                 '0123456789'
         23        DO_ICALL                                         $16     
         24        ECHO                                                     $16
    7    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.37 ms | 1395 KiB | 17 Q