3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Student { private static $age = NULL; public function setAge($age) { Student::$age = $age; } } Student::setAge(20);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qa2Y5
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_STATIC_METHOD_CALL                                  'Student', 'setAge'
          1        SEND_VAL                                                 20
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Class Student:
Function setage:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qa2Y5
function name:  setAge
number of ops:  4
compiled vars:  !0 = $age
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ASSIGN_STATIC_PROP                                       'age', 'Student'
          2        OP_DATA                                                  !0
    9     3      > RETURN                                                   null

End of function setage

End of class Student.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.28 ms | 1393 KiB | 13 Q