3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** Object responsible for echoing debug data **/ class EchoLogger { public function addDebug($data) { echo $data; } } /** Object responsible for emailing debug data **/ class EmailLogger { public function addDebug($data) { /** Mail your data **/ } } class HttpClientService implements \SplSubject { private $observers = array(); public function getServiceStatus() { // -- SNIP -- $rand = rand(0, 10); $status = ($rand >= 5) ? 'success' : 'error'; // -- Snip -- return $status; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6U0oF
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   DECLARE_CLASS                                            'httpclientservice'
   28     1      > RETURN                                                   1

Class EchoLogger:
Function adddebug:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6U0oF
function name:  addDebug
number of ops:  3
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        ECHO                                                     !0
          2      > RETURN                                                   null

End of function adddebug

End of class EchoLogger.

Class EmailLogger:
Function adddebug:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6U0oF
function name:  addDebug
number of ops:  2
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function adddebug

End of class EmailLogger.

Class HttpClientService:
Function getservicestatus:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6U0oF
function name:  getServiceStatus
number of ops:  13
compiled vars:  !0 = $rand, !1 = $status
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   INIT_FCALL                                               'rand'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 10
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
   23     5        IS_SMALLER_OR_EQUAL                                      5, !0
          6      > JMPZ                                                     ~4, ->9
          7    >   QM_ASSIGN                                        ~5      'success'
          8      > JMP                                                      ->10
          9    >   QM_ASSIGN                                        ~5      'error'
         10    >   ASSIGN                                                   !1, ~5
   26    11      > RETURN                                                   !1
   27    12*     > RETURN                                                   null

End of function getservicestatus

End of class HttpClientService.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.83 ms | 1396 KiB | 15 Q