3v4l.org

run code in 500+ PHP versions simultaneously
<?php str_contains("", null); // > No errors function _str_contains ( string $haystack , string $needle ) : bool { return true; } _str_contains("", null);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OVoa0A
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   FRAMELESS_ICALL_2                str_contains        ~0      '', null
          1        FREE                                                         ~0
   11     2        INIT_FCALL                                                   '_str_contains'
          3        SEND_VAL                                                     ''
          4        SEND_VAL                                                     null
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

Function _str_contains:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OVoa0A
function name:  _str_contains
number of ops:  5
compiled vars:  !0 = $haystack, !1 = $needle
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    8     2      > RETURN                                                       <true>
    9     3*       VERIFY_RETURN_TYPE                                           
          4*     > RETURN                                                       null

End of function _str_contains

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.67 ms | 3395 KiB | 14 Q