3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'a: ' . var_export(array_all([null,null,null,null,null], fn($v) => is_null($v)), true); // 5 iterations for true outcome echo "\n"; echo 'b: ' . var_export(array_all([null,null,1,null,null], fn($v) => is_null($v)), true); // 3 iterations for false outcome
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lmh7S
function name:  (null)
number of ops:  24
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_export'
          1        INIT_FCALL_BY_NAME                                       'array_all'
          2        SEND_VAL_EX                                              <array>
          3        DECLARE_LAMBDA_FUNCTION                          ~0      [0]
          4        SEND_VAL_EX                                              ~0
          5        DO_FCALL                                      0  $1      
          6        SEND_VAR                                                 $1
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $2      
          9        CONCAT                                           ~3      'a%3A+', $2
         10        ECHO                                                     ~3
    4    11        ECHO                                                     '%0A'
    5    12        INIT_FCALL                                               'var_export'
         13        INIT_FCALL_BY_NAME                                       'array_all'
         14        SEND_VAL_EX                                              <array>
         15        DECLARE_LAMBDA_FUNCTION                          ~4      [1]
         16        SEND_VAL_EX                                              ~4
         17        DO_FCALL                                      0  $5      
         18        SEND_VAR                                                 $5
         19        SEND_VAL                                                 <true>
         20        DO_ICALL                                         $6      
         21        CONCAT                                           ~7      'b%3A+', $6
         22        ECHO                                                     ~7
         23      > 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/Lmh7S
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        TYPE_CHECK                                    2  ~1      !0
          2      > RETURN                                                   ~1
          3*     > RETURN                                                   null

End of Dynamic Function 0

Dynamic Function 1
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lmh7S
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        TYPE_CHECK                                    2  ~1      !0
          2      > RETURN                                                   ~1
          3*     > RETURN                                                   null

End of Dynamic Function 1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
200.62 ms | 1011 KiB | 14 Q