3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { public function htmlspecialchars($args) { return 'instance method :' . $args; } } $a = '<a href="https://www.yahoo.co.jp/">zozo</a>'; $b = new A; echo $b->htmlspecialchars($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/89NlX
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                       !0, '%3Ca+href%3D%22https%3A%2F%2Fwww.yahoo.co.jp%2F%22%3Ezozo%3C%2Fa%3E'
   12     1        NEW                                                  $3      'A'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !1, $3
   13     4        INIT_METHOD_CALL                                             !1, 'htmlspecialchars'
          5        SEND_VAR_EX                                                  !0
          6        DO_FCALL                                          0  $6      
          7        ECHO                                                         $6
          8      > RETURN                                                       1

Class A:
Function htmlspecialchars:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/89NlX
function name:  htmlspecialchars
number of ops:  4
compiled vars:  !0 = $args
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV                                                 !0      
    7     1        CONCAT                                               ~1      'instance+method+%3A', !0
          2      > RETURN                                                       ~1
    8     3*     > RETURN                                                       null

End of function htmlspecialchars

End of class A.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
191.36 ms | 2097 KiB | 13 Q