3v4l.org

run code in 300+ PHP versions simultaneously
<?php function rotUrl($url) { return strtr($url, './-:?=&%# ZQXJKVWPY abcdefghijklmnopqrstuvwxyz123456789ABCDEFGHILMNORSTU', 'ZQXJKVWPY ./-:?=&%# 123456789ABCDEFGHILMNORSTUabcdefghijklmnopqrstuvwxyz'); } assert('http://google.com' === rotUrl(rotUrl('http://google.com')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M3KXG
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSERT_CHECK                                             
          1        INIT_FCALL                                               'assert'
          2        INIT_FCALL                                               'roturl'
          3        INIT_FCALL                                               'roturl'
          4        SEND_VAL                                                 'http%3A%2F%2Fgoogle.com'
          5        DO_FCALL                                      0  $0      
          6        SEND_VAR                                                 $0
          7        DO_FCALL                                      0  $1      
          8        IS_IDENTICAL                                     ~2      $1, 'http%3A%2F%2Fgoogle.com'
          9        SEND_VAL                                                 ~2
         10        SEND_VAL                                                 'assert%28%27http%3A%2F%2Fgoogle.com%27+%3D%3D%3D+rotUrl%28rotUrl%28%27http%3A%2F%2Fgoogle.com%27%29%29%29'
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Function roturl:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M3KXG
function name:  rotUrl
number of ops:  8
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'strtr'
          2        SEND_VAR                                                 !0
    5     3        SEND_VAL                                                 '.%2F-%3A%3F%3D%26%25%23+ZQXJKVWPY+abcdefghijklmnopqrstuvwxyz123456789ABCDEFGHILMNORSTU'
    6     4        SEND_VAL                                                 'ZQXJKVWPY+.%2F-%3A%3F%3D%26%25%23+123456789ABCDEFGHILMNORSTUabcdefghijklmnopqrstuvwxyz'
          5        DO_ICALL                                         $1      
          6      > RETURN                                                   $1
    7     7*     > RETURN                                                   null

End of function roturl

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.42 ms | 1402 KiB | 19 Q