3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = "holm_25.jpg"; $findnum = explode("-",$file); preg_match_all('/([\d]+)/', $findnum[0], $match); $sortnum = implode("", $match[0]); echo $findnum;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hQaDC
function name:  (null)
number of ops:  20
compiled vars:  !0 = $file, !1 = $findnum, !2 = $match, !3 = $sortnum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'holm_25.jpg'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '-'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    5     6        INIT_FCALL                                               'preg_match_all'
          7        SEND_VAL                                                 '%2F%28%5B%5Cd%5D%2B%29%2F'
          8        FETCH_DIM_R                                      ~7      !1, 0
          9        SEND_VAL                                                 ~7
         10        SEND_REF                                                 !2
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'implode'
         13        SEND_VAL                                                 ''
         14        FETCH_DIM_R                                      ~9      !2, 0
         15        SEND_VAL                                                 ~9
         16        DO_ICALL                                         $10     
         17        ASSIGN                                                   !3, $10
    7    18        ECHO                                                     !1
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.49 ms | 1386 KiB | 19 Q