3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GCRfZ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $yo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   NEW                                              $1      'Yoba'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   26     3        INIT_METHOD_CALL                                         !0, 'setAge'
          4        SEND_VAL_EX                                              10
          5        DO_FCALL                                      0          
   27     6        INIT_METHOD_CALL                                         !0, 'getAge'
          7        DO_FCALL                                      0  $5      
          8        ECHO                                                     $5
   28     9        INIT_METHOD_CALL                                         !0, 'setAge'
         10        SEND_VAL_EX                                              1000
         11        DO_FCALL                                      0          
   29    12        INIT_METHOD_CALL                                         !0, 'getAge'
         13        DO_FCALL                                      0  $7      
         14        ECHO                                                     $7
         15      > RETURN                                                   1

Class ValidationFailedException: [no user functions]
Class Yoba:
Function getage:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GCRfZ
function name:  getAge
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_OBJ_R                                      ~0      'age'
          1        VERIFY_RETURN_TYPE                                       ~0
          2      > RETURN                                                   ~0
   10     3*       VERIFY_RETURN_TYPE                                       
          4*     > RETURN                                                   null

End of function getage

Function setage:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GCRfZ
function name:  setAge
number of ops:  6
compiled vars:  !0 = $age
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   13     1        ASSIGN_OBJ                                               'age'
          2        OP_DATA                                                  !0
   14     3        INIT_METHOD_CALL                                         'ageValidate'
          4        DO_FCALL                                      0          
   15     5      > RETURN                                                   null

End of function setage

Function agevalidate:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 6
filename:       /in/GCRfZ
function name:  ageValidate
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   FETCH_OBJ_R                                      ~0      'age'
          1        IS_SMALLER                                       ~1      0, ~0
          2      > JMPZ_EX                                          ~1      ~1, ->6
          3    >   FETCH_OBJ_R                                      ~2      'age'
          4        IS_SMALLER_OR_EQUAL                              ~3      ~2, 100
          5        BOOL                                             ~1      ~3
          6    > > JMPZ                                                     ~1, ->8
   19     7    > > RETURN                                                   <true>
   21     8    >   NEW                                              $4      'ValidationFailedException'
          9        DO_FCALL                                      0          
         10      > THROW                                         0          $4
   22    11*       VERIFY_RETURN_TYPE                                       
         12*     > RETURN                                                   null

End of function agevalidate

End of class Yoba.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.43 ms | 969 KiB | 13 Q