3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function bad_3rd_partycode( $p ) { return null; } function my_code( string $path ): string { if ( is_file( $path ) ) { unlink( $path ); } return ''; } $value = 'foo.log'; $value = call_user_func( 'bad_3rd_partycode', $value ); echo call_user_func( 'my_code', $value );

preferences:
33.08 ms | 405 KiB | 5 Q