3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oranges = 10; $apples = 5; $string = "I have %d apples and %d oranges"; printf($string, $apples, $oranges); var_dump(htmlentities($string, ENT_QUOTES)); var_dump(print htmlspecialchars($string)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BNR8H
function name:  (null)
number of ops:  23
compiled vars:  !0 = $oranges, !1 = $apples, !2 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 10
    3     1        ASSIGN                                                   !1, 5
    5     2        ASSIGN                                                   !2, 'I+have+%25d+apples+and+%25d+oranges'
    6     3        INIT_FCALL                                               'printf'
          4        SEND_VAR                                                 !2
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    8     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'htmlentities'
         10        SEND_VAR                                                 !2
         11        SEND_VAL                                                 3
         12        DO_ICALL                                         $7      
         13        SEND_VAR                                                 $7
         14        DO_ICALL                                                 
    9    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'htmlspecialchars'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                         $9      
         19        ECHO                                                     $9
         20        SEND_VAL                                                 1
         21        DO_ICALL                                                 
   12    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.07 ms | 1395 KiB | 21 Q