3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CandidaturesAction { function creerCandidature($argument) { var_dump("creerCandidature : $argument");} static function test_statique($argument) { var_dump("test_statique : $argument");} } var_dump("nom de la classe dans le tableau"); $target = ["CandidaturesAction", "creerCandidature"]; var_dump(is_callable($target)); $target = ["CandidaturesAction", "test_statique"]; var_dump(is_callable($target)); var_dump("objet dans le tableau"); $target = [new CandidaturesAction(), "creerCandidature"]; var_dump(is_callable($target));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j9Q78
function name:  (null)
number of ops:  32
compiled vars:  !0 = $target
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'nom+de+la+classe+dans+le+tableau'
          2        DO_ICALL                                                 
    9     3        ASSIGN                                                   !0, <array>
   10     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'is_callable'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
   11    10        ASSIGN                                                   !0, <array>
   12    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'is_callable'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $6      
         15        SEND_VAR                                                 $6
         16        DO_ICALL                                                 
   14    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAL                                                 'objet+dans+le+tableau'
         19        DO_ICALL                                                 
   15    20        NEW                                              $9      'CandidaturesAction'
         21        DO_FCALL                                      0          
         22        INIT_ARRAY                                       ~11     $9
         23        ADD_ARRAY_ELEMENT                                ~11     'creerCandidature'
         24        ASSIGN                                                   !0, ~11
   16    25        INIT_FCALL                                               'var_dump'
         26        INIT_FCALL                                               'is_callable'
         27        SEND_VAR                                                 !0
         28        DO_ICALL                                         $13     
         29        SEND_VAR                                                 $13
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Class CandidaturesAction:
Function creercandidature:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j9Q78
function name:  creerCandidature
number of ops:  7
compiled vars:  !0 = $argument
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'var_dump'
          2        NOP                                                      
          3        FAST_CONCAT                                      ~1      'creerCandidature+%3A+', !0
          4        SEND_VAL                                                 ~1
          5        DO_ICALL                                                 
          6      > RETURN                                                   null

End of function creercandidature

Function test_statique:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j9Q78
function name:  test_statique
number of ops:  7
compiled vars:  !0 = $argument
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'var_dump'
          2        NOP                                                      
          3        FAST_CONCAT                                      ~1      'test_statique+%3A+', !0
          4        SEND_VAL                                                 ~1
          5        DO_ICALL                                                 
          6      > RETURN                                                   null

End of function test_statique

End of class CandidaturesAction.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.57 ms | 1006 KiB | 15 Q