3v4l.org

run code in 300+ PHP versions simultaneously
<?php $web = 'http://hotel.com'; echo strrpos($web, 'http://', -strlen($web)) !== FALSE || strrpos($web, 'https://', -strlen($web)) !== FALSE;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 10, Position 2 = 19
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/ThXKT
function name:  (null)
number of ops:  21
compiled vars:  !0 = $web
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fhotel.com'
    3     1        INIT_FCALL                                               'strrpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'http%3A%2F%2F'
          4        STRLEN                                           ~2      !0
          5        MUL                                              ~3      ~2, -1
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                         $4      
          8        TYPE_CHECK                                  1018  ~5      $4
          9      > JMPNZ_EX                                         ~5      ~5, ->19
    4    10    >   INIT_FCALL                                               'strrpos'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 'https%3A%2F%2F'
         13        STRLEN                                           ~6      !0
         14        MUL                                              ~7      ~6, -1
         15        SEND_VAL                                                 ~7
         16        DO_ICALL                                         $8      
         17        TYPE_CHECK                                  1018  ~9      $8
         18        BOOL                                             ~5      ~9
         19    >   ECHO                                                     ~5
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.47 ms | 1386 KiB | 15 Q