3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function number (int $integer_only) { echo "This is an interger! Correct!"; } /** * Let's see what happens when we pass in a string as a parameter */ $string = "This is a pretty string"; number($string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/miget
function name:  (null)
number of ops:  5
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ASSIGN                                                   !0, 'This+is+a+pretty+string'
   14     1        INIT_FCALL                                               'number'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function number:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/miget
function name:  number
number of ops:  3
compiled vars:  !0 = $integer_only
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ECHO                                                     'This+is+an+interger%21+Correct%21'
    7     2      > RETURN                                                   null

End of function number

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.01 ms | 1396 KiB | 14 Q