3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public static $aaa = 'bbb'; } echo 'pe=' . (property_exists('Test', 'aaa') ? 'Y' : 'N') . PHP_EOL; $t = 'Test'; $a = 'aaa'; echo 'pv=' . $t::$$a . PHP_EOL;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8GugV
function name:  (null)
number of ops:  19
compiled vars:  !0 = $t, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'property_exists'
          1        SEND_VAL                                                 'Test'
          2        SEND_VAL                                                 'aaa'
          3        DO_ICALL                                         $2      
          4      > JMPZ                                                     $2, ->7
          5    >   QM_ASSIGN                                        ~3      'Y'
          6      > JMP                                                      ->8
          7    >   QM_ASSIGN                                        ~3      'N'
          8    >   CONCAT                                           ~4      'pe%3D', ~3
          9        CONCAT                                           ~5      ~4, '%0A'
         10        ECHO                                                     ~5
    9    11        ASSIGN                                                   !0, 'Test'
   10    12        ASSIGN                                                   !1, 'aaa'
   11    13        FETCH_CLASS                                   0  $8      !0
         14        FETCH_STATIC_PROP_R          unknown             ~9      !1
         15        CONCAT                                           ~10     'pv%3D', ~9
         16        CONCAT                                           ~11     ~10, '%0A'
         17        ECHO                                                     ~11
         18      > RETURN                                                   1

Class Test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.9 ms | 1395 KiB | 15 Q