3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class StaticTest { private static $lookup = array(123, 456, 789); public static function compute() { return StaticTest::$lookup[0]; } } echo 'result: ' . StaticTest::compute();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F3YNE
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_STATIC_METHOD_CALL                                  'StaticTest', 'compute'
          1        DO_FCALL                                      0  $0      
          2        CONCAT                                           ~1      'result%3A+', $0
          3        ECHO                                                     ~1
          4      > RETURN                                                   1

Class StaticTest:
Function compute:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F3YNE
function name:  compute
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'lookup'
          1        FETCH_DIM_R                                      ~1      ~0, 0
          2      > RETURN                                                   ~1
    9     3*     > RETURN                                                   null

End of function compute

End of class StaticTest.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.31 ms | 1393 KiB | 13 Q