3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); error_reporting(E_ALL); function blub(string $t) { var_dump($t); var_dump(!strpos($t, 't3://page', 0) === 0); var_dump(!str_starts_with($t, 't3://page')); } blub('t3://page?uid=10'); blub('t3://record?uid=10&identifier=tx_news_domain_model_news');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RR3ue
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'error_reporting'
          1        SEND_VAL                                                     30719
          2        DO_ICALL                                                     
   11     3        INIT_FCALL                                                   'blub'
          4        SEND_VAL                                                     't3%3A%2F%2Fpage%3Fuid%3D10'
          5        DO_FCALL                                          0          
   12     6        INIT_FCALL                                                   'blub'
          7        SEND_VAL                                                     't3%3A%2F%2Frecord%3Fuid%3D10%26identifier%3Dtx_news_domain_model_news'
          8        DO_FCALL                                          0          
          9      > RETURN                                                       1

Function blub:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RR3ue
function name:  blub
number of ops:  17
compiled vars:  !0 = $t
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV                                                 !0      
    6     1        INIT_FCALL                                                   'var_dump'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                                     
    7     4        INIT_FCALL                                                   'var_dump'
          5        FRAMELESS_ICALL_3                strpos              ~2      !0, 't3%3A%2F%2Fpage'
          6        OP_DATA                                                      0
          7        BOOL_NOT                                             ~3      ~2
          8        IS_IDENTICAL                                         ~4      ~3, 0
          9        SEND_VAL                                                     ~4
         10        DO_ICALL                                                     
    8    11        INIT_FCALL                                                   'var_dump'
         12        FRAMELESS_ICALL_2                str_starts_with      ~6      !0, 't3%3A%2F%2Fpage'
         13        BOOL_NOT                                             ~7      ~6
         14        SEND_VAL                                                     ~7
         15        DO_ICALL                                                     
    9    16      > RETURN                                                       null

End of function blub

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
184.48 ms | 494 KiB | 13 Q