3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Student { private static $age = NULL; public function setAge($age) { $this->age = $age; return $this; } } Student::setAge(20);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BKlX3
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     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/BKlX3
function name:  setAge
number of ops:  6
compiled vars:  !0 = $age
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        ASSIGN_OBJ                                               'age'
          2        OP_DATA                                                  !0
          3        FETCH_THIS                                       ~2      
          4      > RETURN                                                   ~2
          5*     > RETURN                                                   null

End of function setage

End of class Student.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.74 ms | 1393 KiB | 13 Q