3v4l.org

run code in 300+ PHP versions simultaneously
<?php function createCost() { $cost_example = array(); function checkDescription($array_item) { return $array_item; } $array_mapped = array_map('checkDescription', $cost_example); print_r($array_mapped); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/50VNM
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E > > RETURN                                                   1

Function createcost:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/50VNM
function name:  createCost
number of ops:  11
compiled vars:  !0 = $cost_example, !1 = $array_mapped
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    6     1        DECLARE_FUNCTION                                         'checkdescription'
   11     2        INIT_FCALL                                               'array_map'
          3        SEND_VAL                                                 'checkDescription'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
   12     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
   13    10      > RETURN                                                   null

End of function createcost

Function %00checkdescription%2Fin%2F50VNM%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/50VNM
function name:  checkDescription
number of ops:  3
compiled vars:  !0 = $array_item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1      > RETURN                                                   !0
    9     2*     > RETURN                                                   null

End of function %00checkdescription%2Fin%2F50VNM%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.26 ms | 1395 KiB | 17 Q