3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { function yup(){ } } $test = function(callable $callable){ echo "woo"; }; $test('is_int'); $test(Test::class."::yup"); $test([Test::class, 'yup']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s148s
function name:  (null)
number of ops:  12
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   DECLARE_LAMBDA_FUNCTION                          ~1      [0]
          1        ASSIGN                                                   !0, ~1
   13     2        INIT_DYNAMIC_CALL                                        !0
          3        SEND_VAL_EX                                              'is_int'
          4        DO_FCALL                                      0          
   14     5        INIT_DYNAMIC_CALL                                        !0
          6        SEND_VAL_EX                                              'Test%3A%3Ayup'
          7        DO_FCALL                                      0          
   15     8        INIT_DYNAMIC_CALL                                        !0
          9        SEND_VAL_EX                                              <array>
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s148s
function name:  {closure}
number of ops:  3
compiled vars:  !0 = $callable
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        ECHO                                                     'woo'
   11     2      > RETURN                                                   null

End of Dynamic Function 0

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

End of function yup

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
242.44 ms | 942 KiB | 13 Q