3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "https://sendy.co/gateway/testing"; var_dump(substr($url, count("https://sendy.co/gateway/"), 0)); var_dump(substr($url, count("https://sendy.co/gateway/"), 0) == "https://sendy.co/gateway/");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jsbXt
function name:  (null)
number of ops:  21
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fsendy.co%2Fgateway%2Ftesting'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'substr'
          3        SEND_VAR                                                 !0
          4        COUNT                                            ~2      'https%3A%2F%2Fsendy.co%2Fgateway%2F'
          5        SEND_VAL                                                 ~2
          6        SEND_VAL                                                 0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'substr'
         12        SEND_VAR                                                 !0
         13        COUNT                                            ~5      'https%3A%2F%2Fsendy.co%2Fgateway%2F'
         14        SEND_VAL                                                 ~5
         15        SEND_VAL                                                 0
         16        DO_ICALL                                         $6      
         17        IS_EQUAL                                         ~7      $6, 'https%3A%2F%2Fsendy.co%2Fgateway%2F'
         18        SEND_VAL                                                 ~7
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
280.11 ms | 1011 KiB | 15 Q