3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cosas = array( 'true' => TRUE, 'false' => FALSE, 'null' => NULL, 'empty' => "", 'positive' => 1, 'negative' => -1, 'zero' => 0 ); $cosas = array_filter($cosas, function($k){ return strpos($k, "o") === FALSE; }); foreach($cosas as $nombre => $cosa) { echo "* $nombre\n"; echo "\tisset:\t" . ( isset($cosa) ? "TRUE" : "FALSE" ) . "\n"; echo "\ti_null:\t" . ( is_null($cosa) ? "TRUE" : "FALSE" ) . "\n"; echo "\tempty:\t" . ( empty($cosa) ? "TRUE" : "FALSE" ) . "\n"; echo "\teval:\t" . ( $cosa ? "TRUE" : "FALSE" ) . "\n\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 46
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 46
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 34
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 41
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 41
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 34
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 41
Branch analysis from position: 39
Branch analysis from position: 41
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 34
Branch analysis from position: 32
Branch analysis from position: 34
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
Branch analysis from position: 26
Branch analysis from position: 46
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 46
filename:       /in/GMRoo
function name:  (null)
number of ops:  48
compiled vars:  !0 = $cosas, !1 = $cosa, !2 = $nombre
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   12     1        INIT_FCALL                                               'array_filter'
          2        SEND_VAR                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FGMRoo%3A12%240'
          4        SEND_VAL                                                 ~4
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !0, $5
   13     7      > FE_RESET_R                                       $7      !0, ->46
          8    > > FE_FETCH_R                                       ~8      $7, !1, ->46
          9    >   ASSIGN                                                   !2, ~8
   15    10        ROPE_INIT                                     3  ~11     '%2A+'
         11        ROPE_ADD                                      1  ~11     ~11, !2
         12        ROPE_END                                      2  ~10     ~11, '%0A'
         13        ECHO                                                     ~10
   16    14        ISSET_ISEMPTY_CV                                         !1
         15      > JMPZ                                                     ~13, ->18
         16    >   QM_ASSIGN                                        ~14     'TRUE'
         17      > JMP                                                      ->19
         18    >   QM_ASSIGN                                        ~14     'FALSE'
         19    >   CONCAT                                           ~15     '%09isset%3A%09', ~14
         20        CONCAT                                           ~16     ~15, '%0A'
         21        ECHO                                                     ~16
   17    22        TYPE_CHECK                                    2          !1
         23      > JMPZ                                                     ~17, ->26
         24    >   QM_ASSIGN                                        ~18     'TRUE'
         25      > JMP                                                      ->27
         26    >   QM_ASSIGN                                        ~18     'FALSE'
         27    >   CONCAT                                           ~19     '%09i_null%3A%09', ~18
         28        CONCAT                                           ~20     ~19, '%0A'
         29        ECHO                                                     ~20
   18    30        ISSET_ISEMPTY_CV                                         !1
         31      > JMPZ                                                     ~21, ->34
         32    >   QM_ASSIGN                                        ~22     'TRUE'
         33      > JMP                                                      ->35
         34    >   QM_ASSIGN                                        ~22     'FALSE'
         35    >   CONCAT                                           ~23     '%09empty%3A%09', ~22
         36        CONCAT                                           ~24     ~23, '%0A'
         37        ECHO                                                     ~24
   19    38      > JMPZ                                                     !1, ->41
         39    >   QM_ASSIGN                                        ~25     'TRUE'
         40      > JMP                                                      ->42
         41    >   QM_ASSIGN                                        ~25     'FALSE'
         42    >   CONCAT                                           ~26     '%09eval%3A%09', ~25
         43        CONCAT                                           ~27     ~26, '%0A%0A'
         44        ECHO                                                     ~27
   13    45      > JMP                                                      ->8
         46    >   FE_FREE                                                  $7
   20    47      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FGMRoo%3A12%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GMRoo
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'o'
          4        DO_ICALL                                         $1      
          5        TYPE_CHECK                                    4  ~2      $1
          6      > RETURN                                                   ~2
          7*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FGMRoo%3A12%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158 ms | 1392 KiB | 17 Q