3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = "🚁"; $foo = mb_convert_encoding($foo, "UTF-8"); var_dump($foo); var_dump(mb_convert_encoding($text, 'HTML-ENTITIES', "UTF-8")); var_dump(htmlentities($foo));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vTHVj
function name:  (null)
number of ops:  24
compiled vars:  !0 = $foo, !1 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%F0%9F%9A%81'
    6     1        INIT_FCALL                                               'mb_convert_encoding'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'UTF-8'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
    8     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
   10     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'mb_convert_encoding'
         11        SEND_VAR                                                 !1
         12        SEND_VAL                                                 'HTML-ENTITIES'
         13        SEND_VAL                                                 'UTF-8'
         14        DO_ICALL                                         $6      
         15        SEND_VAR                                                 $6
         16        DO_ICALL                                                 
   12    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'htmlentities'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $8      
         21        SEND_VAR                                                 $8
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.75 ms | 1399 KiB | 19 Q