3v4l.org

run code in 500+ PHP versions simultaneously
<?php class BugReportMailrcConfigTests { /** @var string */ private $s1 = <<<STRING I'm a string :( STRING; /** @var string */ private $s2 = <<<'STRING' I'm a string :) STRING; /** @var string */ private $s3 = 'I\'m a string :)'; } $ref = new \ReflectionClass(BugReportMailrcConfigTests::class); $s1 = $ref->getProperty('s1'); var_dump($s1->getDocComment()); $s2 = $ref->getProperty('s2'); var_dump($s2->getDocComment()); $s3 = $ref->getProperty('s3'); var_dump($s2->getDocComment());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4fRLA
function name:  (null)
number of ops:  32
compiled vars:  !0 = $ref, !1 = $s1, !2 = $s2, !3 = $s3
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   17     0  E >   NEW                                                  $4      'ReflectionClass'
          1        SEND_VAL_EX                                                  'BugReportMailrcConfigTests'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $4
   18     4        INIT_METHOD_CALL                                             !0, 'getProperty'
          5        SEND_VAL_EX                                                  's1'
          6        DO_FCALL                                          0  $7      
          7        ASSIGN                                                       !1, $7
   19     8        INIT_FCALL                                                   'var_dump'
          9        INIT_METHOD_CALL                                             !1, 'getDocComment'
         10        DO_FCALL                                          0  $9      
         11        SEND_VAR                                                     $9
         12        DO_ICALL                                                     
   21    13        INIT_METHOD_CALL                                             !0, 'getProperty'
         14        SEND_VAL_EX                                                  's2'
         15        DO_FCALL                                          0  $11     
         16        ASSIGN                                                       !2, $11
   22    17        INIT_FCALL                                                   'var_dump'
         18        INIT_METHOD_CALL                                             !2, 'getDocComment'
         19        DO_FCALL                                          0  $13     
         20        SEND_VAR                                                     $13
         21        DO_ICALL                                                     
   24    22        INIT_METHOD_CALL                                             !0, 'getProperty'
         23        SEND_VAL_EX                                                  's3'
         24        DO_FCALL                                          0  $15     
         25        ASSIGN                                                       !3, $15
   25    26        INIT_FCALL                                                   'var_dump'
         27        INIT_METHOD_CALL                                             !2, 'getDocComment'
         28        DO_FCALL                                          0  $17     
         29        SEND_VAR                                                     $17
         30        DO_ICALL                                                     
         31      > RETURN                                                       1

Class BugReportMailrcConfigTests: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.97 ms | 2089 KiB | 14 Q