3v4l.org

run code in 300+ 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:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'str_contains'
          1        SEND_VAL                                                 ''
          2        SEND_VAL                                                 null
          3        DO_ICALL                                                 
   11     4        INIT_FCALL                                               '_str_contains'
          5        SEND_VAL                                                 ''
          6        SEND_VAL                                                 null
          7        DO_FCALL                                      0          
          8      > 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.0.0


preferences:
207.91 ms | 1397 KiB | 16 Q