3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Validation{ // using the reserved word array as a method name only works since PHP 7 public function array( $field, $name ){ echo 'array OK'; } } $validation = new Validation(); $validation->array(1,2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WVgvh
function name:  (null)
number of ops:  8
compiled vars:  !0 = $validation
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'Validation'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        INIT_METHOD_CALL                                         !0, 'array'
          4        SEND_VAL_EX                                              1
          5        SEND_VAL_EX                                              2
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class Validation:
Function array:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WVgvh
function name:  array
number of ops:  4
compiled vars:  !0 = $field, !1 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        ECHO                                                     'array+OK'
    8     3      > RETURN                                                   null

End of function array

End of class Validation.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.79 ms | 998 KiB | 13 Q