Testing with null (with casting) ================================================>>
------------------------>> (without casting)
Warning: foreach() argument must be of type array|object, null given in /in/aO76k on line 42
Testing with false (with casting) ================================================>>
0 =>
------------------------>> (without casting)
Warning: foreach() argument must be of type array|object, false given in /in/aO76k on line 42
Testing with true (with casting) ================================================>>
0 => 1
------------------------>> (without casting)
Warning: foreach() argument must be of type array|object, true given in /in/aO76k on line 42
Testing with class (with casting) ================================================>>
propertyOne => propertyOneValue
propertyThree => propertyThreeValue
foreachTest privateProperty => privateProperty
------------------------>> (without casting)
propertyOne => propertyOneValue
propertyThree => propertyThreeValue
Testing with array (with casting) ================================================>>
key_1 => val_1
key_2 => val_2
------------------------>> (without casting)
key_1 => val_1
key_2 => val_2
Testing with undefined (with casting) ================================================>>
Warning: Undefined variable $undefined in /in/aO76k on line 34
------------------------>> (without casting)
Warning: Undefined variable $undefined in /in/aO76k on line 42
Warning: foreach() argument must be of type array|object, null given in /in/aO76k on line 42
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Testing with null (with casting) ================================================>>
------------------------>> (without casting)
Warning: foreach() argument must be of type array|object, null given in /in/aO76k on line 42
Testing with false (with casting) ================================================>>
0 =>
------------------------>> (without casting)
Warning: foreach() argument must be of type array|object, bool given in /in/aO76k on line 42
Testing with true (with casting) ================================================>>
0 => 1
------------------------>> (without casting)
Warning: foreach() argument must be of type array|object, bool given in /in/aO76k on line 42
Testing with class (with casting) ================================================>>
propertyOne => propertyOneValue
propertyThree => propertyThreeValue
foreachTest privateProperty => privateProperty
------------------------>> (without casting)
propertyOne => propertyOneValue
propertyThree => propertyThreeValue
Testing with array (with casting) ================================================>>
key_1 => val_1
key_2 => val_2
------------------------>> (without casting)
key_1 => val_1
key_2 => val_2
Testing with undefined (with casting) ================================================>>
Warning: Undefined variable $undefined in /in/aO76k on line 34
------------------------>> (without casting)
Warning: Undefined variable $undefined in /in/aO76k on line 42
Warning: foreach() argument must be of type array|object, null given in /in/aO76k on line 42