3v4l.org

run code in 300+ PHP versions simultaneously
<?php $param = 'L\'Etest'; $res1 = html_entity_encode(urlencode($param)); $res2 = html_entity_decode(urldecode($param)); echo $res2 . PHP_EOL; echo $res1 . PHP_EOL; echo $param . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mS9mX
function name:  (null)
number of ops:  22
compiled vars:  !0 = $param, !1 = $res1, !2 = $res2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'L%27Etest'
    5     1        INIT_FCALL_BY_NAME                                       'html_entity_encode'
          2        INIT_FCALL                                               'urlencode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        SEND_VAR_NO_REF_EX                                       $4
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                                   !1, $5
    6     8        INIT_FCALL                                               'html_entity_decode'
          9        INIT_FCALL                                               'urldecode'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                         $8      
         14        ASSIGN                                                   !2, $8
    8    15        CONCAT                                           ~10     !2, '%0A'
         16        ECHO                                                     ~10
    9    17        CONCAT                                           ~11     !1, '%0A'
         18        ECHO                                                     ~11
   10    19        CONCAT                                           ~12     !0, '%0A'
         20        ECHO                                                     ~12
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.92 ms | 1395 KiB | 19 Q