3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (strpos('wp-content/uploads/2013/03/m_Chado-00560h-200x300.jpg', '.d201402') !== FALSE){ $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
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 22
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/9QW90
function name:  (null)
number of ops:  23
compiled vars:  !0 = $stringToReplace, !1 = $removeTimestamp, !2 = $example_2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strpos'
          1        SEND_VAL                                                 'wp-content%2Fuploads%2F2013%2F03%2Fm_Chado-00560h-200x300.jpg'
          2        SEND_VAL                                                 '.d201402'
          3        DO_ICALL                                         $3      
          4        TYPE_CHECK                                  1018          $3
          5      > JMPZ                                                     ~4, ->22
    4     6    >   ASSIGN                                                   !0, 'marc-by-marc-jacobs-13-black-136831_3-90x90.jpg'
    5     7        STRLEN                                           ~6      !0
          8        ASSIGN                                                   !1, ~6
    6     9        INIT_FCALL                                               'floor'
         10        SUB                                              ~8      !1, 21
         11        SEND_VAL                                                 ~8
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !1, $9
    7    14        INIT_FCALL                                               'substr_replace'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 'jpg'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $11     
         19        ASSIGN                                                   !2, $11
    9    20        CONCAT                                           ~13     'Example+2%3A+', !2
         21        ECHO                                                     ~13
   11    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.93 ms | 1400 KiB | 19 Q