3v4l.org

run code in 300+ 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/l5jI5
function name:  (null)
number of ops:  35
compiled vars:  !0 = $ref, !1 = $s1, !2 = $ref–, !3 = $s2, !4 = $s3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $5      'ReflectionClass'
          1        SEND_VAL_EX                                              'BugReportMailrcConfigTests'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $5
   18     4        INIT_FCALL_BY_NAME                                       'getProperty'
          5        SEND_VAL_EX                                              's1'
          6        DO_FCALL                                      0  $8      
          7        IS_SMALLER                                       ~9      $8, !2
          8        ASSIGN                                                   !1, ~9
   19     9        INIT_FCALL                                               'var_dump'
         10        INIT_METHOD_CALL                                         !1, 'getDocComment'
         11        DO_FCALL                                      0  $11     
         12        SEND_VAR                                                 $11
         13        DO_ICALL                                                 
   21    14        INIT_FCALL_BY_NAME                                       'getProperty'
         15        SEND_VAL_EX                                              's2'
         16        DO_FCALL                                      0  $13     
         17        IS_SMALLER                                       ~14     $13, !2
         18        ASSIGN                                                   !3, ~14
   22    19        INIT_FCALL                                               'var_dump'
         20        INIT_METHOD_CALL                                         !3, 'getDocComment'
         21        DO_FCALL                                      0  $16     
         22        SEND_VAR                                                 $16
         23        DO_ICALL                                                 
   24    24        INIT_FCALL_BY_NAME                                       'getProperty'
         25        SEND_VAL_EX                                              's3'
         26        DO_FCALL                                      0  $18     
         27        IS_SMALLER                                       ~19     $18, !2
         28        ASSIGN                                                   !4, ~19
   25    29        INIT_FCALL                                               'var_dump'
         30        INIT_METHOD_CALL                                         !3, 'getDocComment'
         31        DO_FCALL                                      0  $21     
         32        SEND_VAR                                                 $21
         33        DO_ICALL                                                 
         34      > RETURN                                                   1

Class BugReportMailrcConfigTests: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.7 ms | 1396 KiB | 15 Q