3v4l.org

run code in 300+ PHP versions simultaneously
<?php $target_dir = "in/"; $target_filename = 'asurite_hw1.m'; // Splits the input file name and its extension. $base_name = pathinfo($target_filename, PATHINFO_FILENAME); $extension = pathinfo($target_filename, PATHINFO_EXTENSION); echo 'base_name: ' . $base_name . "\n"; echo 'extension: ' . $extension . "\n"; $previous_files = glob($target_dir . $base_name . '*'); // $pattern = '/^asurite ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M62vr
function name:  (null)
number of ops:  25
compiled vars:  !0 = $target_dir, !1 = $target_filename, !2 = $base_name, !3 = $extension, !4 = $previous_files
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'in%2F'
    4     1        ASSIGN                                                   !1, 'asurite_hw1.m'
    7     2        INIT_FCALL                                               'pathinfo'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 8
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !2, $7
    8     7        INIT_FCALL                                               'pathinfo'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 4
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !3, $9
    9    12        CONCAT                                           ~11     'base_name%3A+', !2
         13        CONCAT                                           ~12     ~11, '%0A'
         14        ECHO                                                     ~12
   10    15        CONCAT                                           ~13     'extension%3A+', !3
         16        CONCAT                                           ~14     ~13, '%0A'
         17        ECHO                                                     ~14
   12    18        INIT_FCALL                                               'glob'
         19        CONCAT                                           ~15     !0, !2
         20        CONCAT                                           ~16     ~15, '%2A'
         21        SEND_VAL                                                 ~16
         22        DO_ICALL                                         $17     
         23        ASSIGN                                                   !4, $17
   16    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.3 ms | 1395 KiB | 17 Q