3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stringToReplace = "marc-by-marc-jacobs-13-black-136831_3-90x90.jpg"; $removeTimestamp = strlen($stringToReplace); $removeTimestamp = floor($removeTimestamp - 21); $example_2 = substr_replace($stringToReplace, "jpg", $removeTimestamp); echo "Example 2: ".$example_2; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rfGcK
function name:  (null)
number of ops:  17
compiled vars:  !0 = $stringToReplace, !1 = $removeTimestamp, !2 = $example_2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'marc-by-marc-jacobs-13-black-136831_3-90x90.jpg'
    3     1        STRLEN                                           ~4      !0
          2        ASSIGN                                                   !1, ~4
    4     3        INIT_FCALL                                               'floor'
          4        SUB                                              ~6      !1, 21
          5        SEND_VAL                                                 ~6
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !1, $7
    5     8        INIT_FCALL                                               'substr_replace'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'jpg'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !2, $9
    7    14        CONCAT                                           ~11     'Example+2%3A+', !2
         15        ECHO                                                     ~11
    8    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.99 ms | 1394 KiB | 17 Q