3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = array( 1, 2, true, null, //will be removed '', //will be removed false, //will be removed 0, //will be removed array(), //will be removed 'finish' ); foreach(array_filter($x, function($v){ echo $v; return true; }) as $b) {}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/L2UDe
function name:  (null)
number of ops:  11
compiled vars:  !0 = $x, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   15     1        INIT_FCALL                                               'array_filter'
          2        SEND_VAR                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FL2UDe%3A15%240'
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
          6      > FE_RESET_R                                       $5      $4, ->9
          7    > > FE_FETCH_R                                               $5, !1, ->9
          8    > > JMP                                                      ->7
          9    >   FE_FREE                                                  $5
   16    10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FL2UDe%3A15%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L2UDe
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
          1        ECHO                                                     !0
          2      > RETURN                                                   <true>
          3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FL2UDe%3A15%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.67 ms | 1395 KiB | 15 Q