3v4l.org

run code in 300+ PHP versions simultaneously
<?php 'use strict'; function teste(int $a){ return number_format($a, 2, '.', ','); } echo teste(10);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hdBYA
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'teste'
          1        SEND_VAL                                                 10
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function teste:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hdBYA
function name:  teste
number of ops:  9
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'number_format'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 2
          4        SEND_VAL                                                 '.'
          5        SEND_VAL                                                 '%2C'
          6        DO_ICALL                                         $1      
          7      > RETURN                                                   $1
    6     8*     > RETURN                                                   null

End of function teste

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.31 ms | 1397 KiB | 16 Q