NOP

PHP code

<?php
/*
 * no operation
 * opcode number: 0
 */
function A(){}; 
?>

PHP opcodes

Function name: (null)

Compiled variables: none

line#op fetchextreturn operands
60 NOP      
71 RETURN     1

Function name: A

Compiled variables: none

line#op fetchextreturn operands
60 RETURN     null
add a note add a note

User Contributed Notes 1 note

up
0
JShor
5 years ago
Is there no native "noop" callback function?  It seems you have to define the noop function in this way each time you want to pass a noop callback.
To Top