3v4l.org

run code in 500+ PHP versions simultaneously
<?php final class DemoFile { private function validateForm(array $formData): void { $formData = array_map(trim(...), $formData); var_dump($formData); } public function doFoo() { $this->validateForm(['a ', ' b']); } } $d = new DemoFile(); $d->doFoo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/07X6j
function name:  (null)
number of ops:  6
compiled vars:  !0 = $d
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   17     0  E >   NEW                                                  $1      'DemoFile'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   18     3        INIT_METHOD_CALL                                             !0, 'doFoo'
          4        DO_FCALL                                          0          
          5      > RETURN                                                       1

Class DemoFile:
Function validateform:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/07X6j
function name:  validateForm
number of ops:  12
compiled vars:  !0 = $formData
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV                                                 !0      
    7     1        INIT_FCALL                                                   'array_map'
          2        INIT_FCALL                                                   'trim'
          3        CALLABLE_CONVERT                                     ~1      
          4        SEND_VAL                                                     ~1
          5        SEND_VAR                                                     !0
          6        DO_ICALL                                             $2      
          7        ASSIGN                                                       !0, $2
    8     8        INIT_FCALL                                                   'var_dump'
          9        SEND_VAR                                                     !0
         10        DO_ICALL                                                     
    9    11      > RETURN                                                       null

End of function validateform

Function dofoo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/07X6j
function name:  doFoo
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   INIT_METHOD_CALL                                             'validateForm'
          1        SEND_VAL                                                     <array>
          2        DO_FCALL                                          0          
   13     3      > RETURN                                                       null

End of function dofoo

End of class DemoFile.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
116.36 ms | 489 KiB | 12 Q