3v4l.org

run code in 300+ PHP versions simultaneously
<?php $check = fn ($a) => ctype_upper($a); $check(3); $check([]); $check(new stdClass); $check(3.5); $check(true); $check(null); $check(0); $check(256);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PgZ6c
function name:  (null)
number of ops:  29
compiled vars:  !0 = $check
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                          ~1      [0]
          1        ASSIGN                                                   !0, ~1
    5     2        INIT_DYNAMIC_CALL                                        !0
          3        SEND_VAL_EX                                              3
          4        DO_FCALL                                      0          
    6     5        INIT_DYNAMIC_CALL                                        !0
          6        SEND_VAL_EX                                              <array>
          7        DO_FCALL                                      0          
    7     8        INIT_DYNAMIC_CALL                                        !0
          9        NEW                                              $5      'stdClass'
         10        DO_FCALL                                      0          
         11        SEND_VAR_NO_REF_EX                                       $5
         12        DO_FCALL                                      0          
    8    13        INIT_DYNAMIC_CALL                                        !0
         14        SEND_VAL_EX                                              3.5
         15        DO_FCALL                                      0          
    9    16        INIT_DYNAMIC_CALL                                        !0
         17        SEND_VAL_EX                                              <true>
         18        DO_FCALL                                      0          
   10    19        INIT_DYNAMIC_CALL                                        !0
         20        SEND_VAL_EX                                              null
         21        DO_FCALL                                      0          
   11    22        INIT_DYNAMIC_CALL                                        !0
         23        SEND_VAL_EX                                              0
         24        DO_FCALL                                      0          
   12    25        INIT_DYNAMIC_CALL                                        !0
         26        SEND_VAL_EX                                              256
         27        DO_FCALL                                      0          
         28      > 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/PgZ6c
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'ctype_upper'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4      > RETURN                                                   $1
          5*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.25 ms | 998 KiB | 14 Q