3v4l.org

run code in 300+ PHP versions simultaneously
<?php $m = 'm'; $y = 'y'; echo preg_replace('/get_|_csv/i', '', 'get_invoices_and_revenue_csv') . $m . $y . '.csv';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B5E3c
function name:  (null)
number of ops:  12
compiled vars:  !0 = $m, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'm'
    3     1        ASSIGN                                                   !1, 'y'
    4     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2Fget_%7C_csv%2Fi'
          4        SEND_VAL                                                 ''
          5        SEND_VAL                                                 'get_invoices_and_revenue_csv'
          6        DO_ICALL                                         $4      
          7        CONCAT                                           ~5      $4, !0
          8        CONCAT                                           ~6      ~5, !1
          9        CONCAT                                           ~7      ~6, '.csv'
         10        ECHO                                                     ~7
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.59 ms | 1385 KiB | 15 Q