3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Thesaurus { private $thesaurus; function Thesaurus($thesaurus) { $this->thesaurus = $thesaurus; } public function getSynonyms($word) { echo $word; } } $thesaurus = new Thesaurus( array ( "buy" => array("purchase"), "big" => array("great", "large") )); echo $thesaurus->getSynonyms("big"); echo "\n"; //echo $thesaurus->getSynonyms("agelast");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YZSDZ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $thesaurus
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $1      'Thesaurus'
   20     1        SEND_VAL_EX                                              <array>
          2        DO_FCALL                                      0          
   17     3        ASSIGN                                                   !0, $1
   24     4        INIT_METHOD_CALL                                         !0, 'getSynonyms'
          5        SEND_VAL_EX                                              'big'
          6        DO_FCALL                                      0  $4      
          7        ECHO                                                     $4
   25     8        ECHO                                                     '%0A'
   26     9      > RETURN                                                   1

Class Thesaurus:
Function thesaurus:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YZSDZ
function name:  Thesaurus
number of ops:  4
compiled vars:  !0 = $thesaurus
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        ASSIGN_OBJ                                               'thesaurus'
          2        OP_DATA                                                  !0
    9     3      > RETURN                                                   null

End of function thesaurus

Function getsynonyms:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YZSDZ
function name:  getSynonyms
number of ops:  3
compiled vars:  !0 = $word
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   13     1        ECHO                                                     !0
   14     2      > RETURN                                                   null

End of function getsynonyms

End of class Thesaurus.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.65 ms | 1394 KiB | 13 Q