3v4l.org

run code in 300+ PHP versions simultaneously
<?php //factorial.php $n = 52; $factorial = array_product(range(1, $n)); echo $factorial . "\n"; //direct output printf("%g\n", $factorial); //force scientific notation
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WPhMZ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $n, !1 = $factorial
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 52
    3     1        INIT_FCALL                                               'array_product'
          2        INIT_FCALL                                               'range'
          3        SEND_VAL                                                 1
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    4     9        CONCAT                                           ~6      !1, '%0A'
         10        ECHO                                                     ~6
    5    11        INIT_FCALL                                               'printf'
         12        SEND_VAL                                                 '%25g%0A'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.41 ms | 939 KiB | 20 Q