3v4l.org

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

Function absint:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iv4k8
function name:  absint
number of ops:  7
compiled vars:  !0 = $maybeint
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'abs'
          2        CAST                                          4  ~1      !0
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                         $2      
          5      > RETURN                                                   $2
    5     6*     > RETURN                                                   null

End of function absint

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.19 ms | 1388 KiB | 16 Q