3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $valid_check = call_user_func( $arg['validate_callback'], $param, $this, $key ); $arg = array( 'validate_callback' => 'is_numeric' ); $param = '14102'; $obj = new stdClass; $key = 'id'; $valid_check = call_user_func( $arg['validate_callback'], $param, $obj, $key ); var_dump( $valid_check );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A5mm2
function name:  (null)
number of ops:  17
compiled vars:  !0 = $arg, !1 = $param, !2 = $obj, !3 = $key, !4 = $valid_check
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN                                                   !1, '14102'
    7     2        NEW                                              $7      'stdClass'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !2, $7
    8     5        ASSIGN                                                   !3, 'id'
   10     6        FETCH_DIM_R                                      ~11     !0, 'validate_callback'
          7        INIT_USER_CALL                                3          'call_user_func', ~11
          8        SEND_USER                                                !1
          9        SEND_USER                                                !2
         10        SEND_USER                                                !3
         11        DO_FCALL                                      0  $12     
         12        ASSIGN                                                   !4, $12
   11    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !4
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.73 ms | 1450 KiB | 14 Q