3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($arg){ $tmp = array(); if ($arg > 5) { $tmp[] = $arg; } var_dump($tmp); return "return" . $arg; } var_dump(array_map("test", range(1, 10)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5aBTU
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'array_map'
          2        SEND_VAL                                                 'test'
          3        INIT_FCALL                                               'range'
          4        SEND_VAL                                                 1
          5        SEND_VAL                                                 10
          6        DO_ICALL                                         $0      
          7        SEND_VAR                                                 $0
          8        DO_ICALL                                         $1      
          9        SEND_VAR                                                 $1
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/5aBTU
function name:  test
number of ops:  12
compiled vars:  !0 = $arg, !1 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ASSIGN                                                   !1, <array>
    4     2        IS_SMALLER                                               5, !0
          3      > JMPZ                                                     ~3, ->6
    5     4    >   ASSIGN_DIM                                               !1
          5        OP_DATA                                                  !0
    7     6    >   INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    8     9        CONCAT                                           ~6      'return', !0
         10      > RETURN                                                   ~6
    9    11*     > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.19 ms | 1395 KiB | 19 Q