3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_replace('#(http|https):\/\/([.a-zA-Z0-9]*)mailjet\.([\S]*)#', '//$2mailjet.$3', 'http://test.mailjet.com/?url=http://example.mailjet.com'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rcnqh
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%28http%7Chttps%29%3A%5C%2F%5C%2F%28%5B.a-zA-Z0-9%5D%2A%29mailjet%5C.%28%5B%5CS%5D%2A%29%23'
          3        SEND_VAL                                                 '%2F%2F%242mailjet.%243'
          4        SEND_VAL                                                 'http%3A%2F%2Ftest.mailjet.com%2F%3Furl%3Dhttp%3A%2F%2Fexample.mailjet.com'
          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:
152.95 ms | 1394 KiB | 17 Q