3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_replace('#_([a-z])+(\.jpg|\.gif|\.png|\.jpeg){1}$#','_n$2','http://photos-h.ak.fbcdn.net/hphotos-ak-frc3/t1.0-0/1538683_705144079517314_1930601228_n.jpg'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9N53T
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%23_%28%5Ba-z%5D%29%2B%28%5C.jpg%7C%5C.gif%7C%5C.png%7C%5C.jpeg%29%7B1%7D%24%23'
          3        SEND_VAL                                                 '_n%242'
          4        SEND_VAL                                                 'http%3A%2F%2Fphotos-h.ak.fbcdn.net%2Fhphotos-ak-frc3%2Ft1.0-0%2F1538683_705144079517314_1930601228_n.jpg'
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.16 ms | 1385 KiB | 17 Q