3v4l.org

run code in 300+ PHP versions simultaneously
<?php function answer(){ return 42; } function add_up($a,$b){ return $a + $b ; } $func1 = 'answer'; $num1 = $func1; echo $num1; $func2 = 'add_up'; $num2 = $func2(4,5); echo $num2; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EKXhv
function name:  (null)
number of ops:  11
compiled vars:  !0 = $func1, !1 = $num1, !2 = $func2, !3 = $num2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 'answer'
    9     1        ASSIGN                                                   !1, !0
   10     2        ECHO                                                     !1
   12     3        ASSIGN                                                   !2, 'add_up'
   13     4        INIT_DYNAMIC_CALL                                        !2
          5        SEND_VAL_EX                                              4
          6        SEND_VAL_EX                                              5
          7        DO_FCALL                                      0  $7      
          8        ASSIGN                                                   !3, $7
   14     9        ECHO                                                     !3
   15    10      > RETURN                                                   1

Function answer:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EKXhv
function name:  answer
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   42
    4     1*     > RETURN                                                   null

End of function answer

Function add_up:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EKXhv
function name:  add_up
number of ops:  5
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        ADD                                              ~2      !0, !1
          3      > RETURN                                                   ~2
    7     4*     > RETURN                                                   null

End of function add_up

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.94 ms | 1394 KiB | 13 Q