3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const KLASS = __CLASS__; } echo "For before 5.5: " . Foo::KLASS . "\n"; echo "For after: " . Foo::class;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LHafW
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'For+before+5.5%3A+Foo%0A'
    7     1        ECHO                                                     'For+after%3A+Foo'
          2      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.74 ms | 1392 KiB | 13 Q