3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass{ public function writeit(){ $input = array( array( 'a' => 'vmi', 'tag_name' => 'google' ), array( 'a' => 'vmi2', 'tag_name' => 'technology' ) ); echo "(".implode(', ', array_map("findentry", $input)).")"; } private function findentry ($entry) { return $entry['tag_name']; } } $mc = new MyClass(); $mc->writeit();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iCYVT
function name:  (null)
number of ops:  6
compiled vars:  !0 = $mc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   NEW                                              $1      'MyClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   26     3        INIT_METHOD_CALL                                         !0, 'writeit'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class MyClass:
Function writeit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iCYVT
function name:  writeit
number of ops:  13
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, <array>
   17     1        INIT_FCALL                                               'implode'
          2        SEND_VAL                                                 '%2C+'
          3        INIT_FCALL                                               'array_map'
          4        SEND_VAL                                                 'findentry'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                         $3      
          9        CONCAT                                           ~4      '%28', $3
         10        CONCAT                                           ~5      ~4, '%29'
         11        ECHO                                                     ~5
   18    12      > RETURN                                                   null

End of function writeit

Function findentry:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iCYVT
function name:  findentry
number of ops:  4
compiled vars:  !0 = $entry
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV                                             !0      
   21     1        FETCH_DIM_R                                      ~1      !0, 'tag_name'
          2      > RETURN                                                   ~1
   22     3*     > RETURN                                                   null

End of function findentry

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.49 ms | 1388 KiB | 17 Q