3v4l.org

run code in 200+ PHP versions simultaneously
<?php // this will fail type-checking /** @psalm-var list<int> $b */ $b = array_filter([1, 2, 3], function (int $v) { return $v !== 2; }); echo json_encode($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oUoK2
function name:  (null)
number of ops:  11
compiled vars:  !0 = $b
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E >   INIT_FCALL                                               'array_filter'
         1        SEND_VAL                                                 <array>
         2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FoUoK20x7fd1da8a9088'
         3        SEND_VAL                                                 ~1
         4        DO_ICALL                                         $2      
         5        ASSIGN                                                   !0, $2
   7     6        INIT_FCALL                                               'json_encode'
         7        SEND_VAR                                                 !0
         8        DO_ICALL                                         $4      
         9        ECHO                                                     $4
        10      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2FoUoK20x7fd1da8a9088

Generated using Vulcan Logic Dumper, using php 7.3.0