3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'a' => 'test', 'b' => [ 'b2' => 123, 'b3' => [ 'test' => true ] ] ]; $shouldPass = [ 'a', 'b', 'b/b2', 'b/b3', 'b/b3/test' ]; $shouldNotPass = [ 'c', 'b/b1', 'b/b2/bx', 'b/b3/test/x', 'c/L1', 'a/k15', ]; foreach ($shouldPass as $test) { isArrayFieldSet($array, $test, '/'); } foreach ($shouldNotPass as $test) { isArrayFieldSet($array, $test, '/'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 11
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 11
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 20
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 11
filename:       /in/2a4lA
function name:  (null)
number of ops:  22
compiled vars:  !0 = $array, !1 = $shouldPass, !2 = $shouldNotPass, !3 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1        ASSIGN                                                   !1, <array>
   21     2        ASSIGN                                                   !2, <array>
   30     3      > FE_RESET_R                                       $7      !1, ->11
          4    > > FE_FETCH_R                                               $7, !3, ->11
          5    >   INIT_FCALL_BY_NAME                                       'isArrayFieldSet'
          6        SEND_VAR_EX                                              !0
          7        SEND_VAR_EX                                              !3
          8        SEND_VAL_EX                                              '%2F'
          9        DO_FCALL                                      0          
         10      > JMP                                                      ->4
         11    >   FE_FREE                                                  $7
   31    12      > FE_RESET_R                                       $9      !2, ->20
         13    > > FE_FETCH_R                                               $9, !3, ->20
         14    >   INIT_FCALL_BY_NAME                                       'isArrayFieldSet'
         15        SEND_VAR_EX                                              !0
         16        SEND_VAR_EX                                              !3
         17        SEND_VAL_EX                                              '%2F'
         18        DO_FCALL                                      0          
         19      > JMP                                                      ->13
         20    >   FE_FREE                                                  $9
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
204.5 ms | 1394 KiB | 13 Q