3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pages = array('caonima'); array_map('clean_name',$pages); print_r($pages); function clean_name($name){ return ltrim($name,'cao'); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nMmql
function name:  (null)
number of ops:  9
compiled vars:  !0 = $pages
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'array_map'
          2        SEND_VAL                                                 'clean_name'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    6     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
   10     8      > RETURN                                                   1

Function clean_name:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nMmql
function name:  clean_name
number of ops:  7
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        INIT_FCALL                                               'ltrim'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'cao'
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
   10     6*     > RETURN                                                   null

End of function clean_name

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.08 ms | 1395 KiB | 19 Q