3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); class Course { function get_course($assigned_id) { echo 'getCourse: '.$assigned_id; } } $assigned_id = "testCourseForEditor"; // testing if ($assigned_id) { $course = new Course(); $course_data = $course->a($assigned_id); } else { $new_course = TRUE; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 13
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BsBRl
function name:  (null)
number of ops:  15
compiled vars:  !0 = $assigned_id, !1 = $course, !2 = $course_data, !3 = $new_course
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
   11     3        ASSIGN                                                   !0, 'testCourseForEditor'
   13     4      > JMPZ                                                     !0, ->13
   14     5    >   NEW                                              $6      'Course'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
   15     8        INIT_METHOD_CALL                                         !1, 'a'
          9        SEND_VAR_EX                                              !0
         10        DO_FCALL                                      0  $9      
         11        ASSIGN                                                   !2, $9
         12      > JMP                                                      ->14
   17    13    >   ASSIGN                                                   !3, <true>
   18    14    > > RETURN                                                   1

Class Course:
Function get_course:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BsBRl
function name:  get_course
number of ops:  4
compiled vars:  !0 = $assigned_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        CONCAT                                           ~1      'getCourse%3A+', !0
          2        ECHO                                                     ~1
    8     3      > RETURN                                                   null

End of function get_course

End of class Course.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.91 ms | 1395 KiB | 15 Q