3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p = array( 'test' => 7, 'checkbox_2' => 'on', 'checkbox_4' => 'on', 'checkbox_10' => 'on', 'Submit' => '', 'name' => 20, ); $checkboxes = array_filter($p, function($key, $val) { echo $key . ' - ' . $val . PHP_EOL; });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wk7PG
function name:  (null)
number of ops:  8
compiled vars:  !0 = $p, !1 = $checkboxes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        INIT_FCALL                                               'array_filter'
          2        SEND_VAR                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FWk7PG%3A12%240'
   14     4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
   12     6        ASSIGN                                                   !1, $4
   14     7      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FWk7PG%3A12%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wk7PG
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $key, !1 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   13     2        CONCAT                                           ~2      !0, '+-+'
          3        CONCAT                                           ~3      ~2, !1
          4        CONCAT                                           ~4      ~3, '%0A'
          5        ECHO                                                     ~4
   14     6      > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.04 ms | 1395 KiB | 15 Q