PhpRiot
Follow phpriot on Twitter
Sponsored Link
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store
Free iPad/iPhone App
Available on the App Store

  • PHP manual
  • Zend Framework manual
  • Smarty manual
  • PHP articles
  • PHP training

DECLARE_CLASS

PHP code

<?php
/*
 * Declare a class with the name of class-name as the implementation specified by ID.
 * opcode number: 139
 */
class {
    function 
methodA(){
        echo 
"hello world";
    }
}
?>

PHP opcodes

Function name: (null)

Compiled variables: none

line#op fetchextreturn operands
60 NOP      
111 RETURN     1

Function name: methodA

Compiled variables: none

line#op fetchextreturn operands
80 ECHO     'hello+world'
91 RETURN     null

PHP Manual