3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _div($params = array(), $content=null) { //$value = preg_replace("/(\d+)-(\d+)-(\d+)\s(\d+):(\d+):(\d+)/", "$1.$2.$3 $4:$5", $value); if(count($params) > 0) { $createParams = array_map(create_function($key, $value, 'return $key."=\'".$value."\'";'), array_keys($params), array_values($params)); $paramsText = implode(" ",$createParams); } return "<div ".$paramsText.">".$content."</div>"; } print _div(array('field' => 'teszt'), 'faszom');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6Ea8M
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               '_div'
          1        SEND_VAL                                                 <array>
          2        SEND_VAL                                                 'faszom'
          3        DO_FCALL                                      0  $0      
          4        ECHO                                                     $0
          5      > RETURN                                                   1

Function _div:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 27
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/6Ea8M
function name:  _div
number of ops:  33
compiled vars:  !0 = $params, !1 = $content, !2 = $createParams, !3 = $key, !4 = $value, !5 = $paramsText
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_INIT                                        !0      <array>
          1        RECV_INIT                                        !1      null
    4     2        COUNT                                            ~6      !0
          3        IS_SMALLER                                               0, ~6
          4      > JMPZ                                                     ~7, ->27
    5     5    >   INIT_FCALL                                               'array_map'
          6        INIT_FCALL_BY_NAME                                       'create_function'
          7        SEND_VAR_EX                                              !3
          8        SEND_VAR_EX                                              !4
          9        SEND_VAL_EX                                              'return+%24key.%22%3D%27%22.%24value.%22%27%22%3B'
         10        DO_FCALL                                      0  $8      
         11        SEND_VAR                                                 $8
         12        INIT_FCALL                                               'array_keys'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $9      
         15        SEND_VAR                                                 $9
         16        INIT_FCALL                                               'array_values'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $10     
         19        SEND_VAR                                                 $10
         20        DO_ICALL                                         $11     
         21        ASSIGN                                                   !2, $11
    6    22        INIT_FCALL                                               'implode'
         23        SEND_VAL                                                 '+'
         24        SEND_VAR                                                 !2
         25        DO_ICALL                                         $13     
         26        ASSIGN                                                   !5, $13
    8    27    >   CONCAT                                           ~15     '%3Cdiv+', !5
         28        CONCAT                                           ~16     ~15, '%3E'
         29        CONCAT                                           ~17     ~16, !1
         30        CONCAT                                           ~18     ~17, '%3C%2Fdiv%3E'
         31      > RETURN                                                   ~18
    9    32*     > RETURN                                                   null

End of function _div

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.11 ms | 1403 KiB | 25 Q