3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); error_reporting(E_ALL); var_dump((bool)strpos('MATCHsomething', 'MATCH')); var_dump(str_contains('MATCHsomething', 'MATCH'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IFcC3
function name:  (null)
number of ops:  13
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                                                     
    5     3        INIT_FCALL                                                   'var_dump'
          4        FRAMELESS_ICALL_2                strpos              ~1      'MATCHsomething', 'MATCH'
          5        BOOL                                                 ~2      ~1
          6        SEND_VAL                                                     ~2
          7        DO_ICALL                                                     
    6     8        INIT_FCALL                                                   'var_dump'
          9        FRAMELESS_ICALL_2                str_contains        ~4      'MATCHsomething', 'MATCH'
         10        SEND_VAL                                                     ~4
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.71 ms | 491 KiB | 15 Q