3v4l.org

run code in 300+ PHP versions simultaneously
<?php $exts = get_loaded_extensions(); $total = 0; foreach ($exts as $ext) { $f = get_extension_funcs($ext); $total += count($f); } $a = get_defined_functions(); $n = count($a['internal']); $total += $n; echo $n, " / ", $total, " (", count($exts), ")";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 13
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/IZRtS
function name:  (null)
number of ops:  29
compiled vars:  !0 = $exts, !1 = $total, !2 = $ext, !3 = $f, !4 = $a, !5 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'get_loaded_extensions'
          1        DO_ICALL                                         $6      
          2        ASSIGN                                                   !0, $6
    3     3        ASSIGN                                                   !1, 0
    4     4      > FE_RESET_R                                       $9      !0, ->13
          5    > > FE_FETCH_R                                               $9, !2, ->13
    5     6    >   INIT_FCALL                                               'get_extension_funcs'
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                         $10     
          9        ASSIGN                                                   !3, $10
    6    10        COUNT                                            ~12     !3
         11        ASSIGN_OP                                     1          !1, ~12
    4    12      > JMP                                                      ->5
         13    >   FE_FREE                                                  $9
    8    14        INIT_FCALL                                               'get_defined_functions'
         15        DO_ICALL                                         $14     
         16        ASSIGN                                                   !4, $14
    9    17        FETCH_DIM_R                                      ~16     !4, 'internal'
         18        COUNT                                            ~17     ~16
         19        ASSIGN                                                   !5, ~17
   10    20        ASSIGN_OP                                     1          !1, !5
   11    21        ECHO                                                     !5
         22        ECHO                                                     '+%2F+'
         23        ECHO                                                     !1
         24        ECHO                                                     '+%28'
         25        COUNT                                            ~20     !0
         26        ECHO                                                     ~20
         27        ECHO                                                     '%29'
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.2 ms | 1396 KiB | 19 Q