3v4l.org

run code in 300+ PHP versions simultaneously
<?php function inverse($x){ return 1/$x; } echo inverse(5) . "\n"; echo inverse(0) . "\n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/duOMF
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'inverse'
          1        SEND_VAL                                                 5
          2        DO_FCALL                                      0  $0      
          3        CONCAT                                           ~1      $0, '%0A'
          4        ECHO                                                     ~1
    7     5        INIT_FCALL                                               'inverse'
          6        SEND_VAL                                                 0
          7        DO_FCALL                                      0  $2      
          8        CONCAT                                           ~3      $2, '%0A'
          9        ECHO                                                     ~3
    8    10      > RETURN                                                   1

Function inverse:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/duOMF
function name:  inverse
number of ops:  4
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   RECV                                             !0      
    4     1        DIV                                              ~1      1, !0
          2      > RETURN                                                   ~1
    5     3*     > RETURN                                                   null

End of function inverse

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.28 ms | 1397 KiB | 15 Q