3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * For this test someone has written a lot of crap PHP code! * List all the problems you can find with this code and why it is a problem * */ function countVowelsInFile($f) { $content = file_get_contents($f); $matches = array(); return preg_match_all('/[aeiou]/', $content, $matches); } countVowelsInFile(__FILE__);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A5R7J
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'countvowelsinfile'
          1        SEND_VAL                                                 '%2Fin%2FA5R7J'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function countvowelsinfile:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A5R7J
function name:  countVowelsInFile
number of ops:  13
compiled vars:  !0 = $f, !1 = $content, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
   10     1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   11     5        ASSIGN                                                   !2, <array>
   13     6        INIT_FCALL                                               'preg_match_all'
          7        SEND_VAL                                                 '%2F%5Baeiou%5D%2F'
          8        SEND_VAR                                                 !1
          9        SEND_REF                                                 !2
         10        DO_ICALL                                         $6      
         11      > RETURN                                                   $6
   14    12*     > RETURN                                                   null

End of function countvowelsinfile

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.87 ms | 1397 KiB | 18 Q