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); return preg_match_all('/[aeiou]/', $content); } countVowelsInFile(__FILE__);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QIha5
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'countvowelsinfile'
          1        SEND_VAL                                                 '%2Fin%2FQIha5'
          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/QIha5
function name:  countVowelsInFile
number of ops:  11
compiled vars:  !0 = $f, !1 = $content
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                                         $2      
          4        ASSIGN                                                   !1, $2
   12     5        INIT_FCALL                                               'preg_match_all'
          6        SEND_VAL                                                 '%2F%5Baeiou%5D%2F'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $4      
          9      > RETURN                                                   $4
   13    10*     > RETURN                                                   null

End of function countvowelsinfile

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.85 ms | 1397 KiB | 18 Q