3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = [ 'string-blank' => ' ', 'string-empty' => '', 'string-leading-zero' => '01', 'string-word' => 'foo', ]; var_dump(array_map(static function (string $value): bool { return ctype_digit($value); }, $values));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XqGiU
function name:  (null)
number of ops:  10
compiled vars:  !0 = $values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'array_map'
          3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
   12     4        SEND_VAL                                                 ~2
          5        SEND_VAR                                                 !0
   10     6        DO_ICALL                                         $3      
   12     7        SEND_VAR                                                 $3
   10     8        DO_ICALL                                                 
   12     9      > 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/XqGiU
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        INIT_FCALL                                               'ctype_digit'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4        VERIFY_RETURN_TYPE                                       $1
          5      > RETURN                                                   $1
   12     6*       VERIFY_RETURN_TYPE                                       
          7*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.67 ms | 1007 KiB | 16 Q