3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(bin2hex(inet_pton('2001:0db8:85a3:08d3:1319:8a2e:0370:7344'))); var_dump(bin2hex(inet_pton('::1'))); var_dump(bin2hex(inet_pton('127.0.0.1')), bin2hex(inet_pton('::ffff:127.0.0.1')), bin2hex(inet_pton('::ffff:7f00:1'))); var_dump("SELECT 1 FROM IPv6Ranges WHERE X'" . bin2hex(inet_pton('127.0.0.1')) . "' BETWEEN `start` AND `end`");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Pi1Mc
function name:  (null)
number of ops:  53
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'bin2hex'
          2        INIT_FCALL                                               'inet_pton'
          3        SEND_VAL                                                 '2001%3A0db8%3A85a3%3A08d3%3A1319%3A8a2e%3A0370%3A7344'
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
          8        DO_ICALL                                                 
    4     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'bin2hex'
         11        INIT_FCALL                                               'inet_pton'
         12        SEND_VAL                                                 '%3A%3A1'
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                         $4      
         16        SEND_VAR                                                 $4
         17        DO_ICALL                                                 
    5    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'bin2hex'
         20        INIT_FCALL                                               'inet_pton'
         21        SEND_VAL                                                 '127.0.0.1'
         22        DO_ICALL                                         $6      
         23        SEND_VAR                                                 $6
         24        DO_ICALL                                         $7      
         25        SEND_VAR                                                 $7
         26        INIT_FCALL                                               'bin2hex'
         27        INIT_FCALL                                               'inet_pton'
         28        SEND_VAL                                                 '%3A%3Affff%3A127.0.0.1'
         29        DO_ICALL                                         $8      
         30        SEND_VAR                                                 $8
         31        DO_ICALL                                         $9      
         32        SEND_VAR                                                 $9
         33        INIT_FCALL                                               'bin2hex'
         34        INIT_FCALL                                               'inet_pton'
         35        SEND_VAL                                                 '%3A%3Affff%3A7f00%3A1'
         36        DO_ICALL                                         $10     
         37        SEND_VAR                                                 $10
         38        DO_ICALL                                         $11     
         39        SEND_VAR                                                 $11
         40        DO_ICALL                                                 
    7    41        INIT_FCALL                                               'var_dump'
         42        INIT_FCALL                                               'bin2hex'
         43        INIT_FCALL                                               'inet_pton'
         44        SEND_VAL                                                 '127.0.0.1'
         45        DO_ICALL                                         $13     
         46        SEND_VAR                                                 $13
         47        DO_ICALL                                         $14     
         48        CONCAT                                           ~15     'SELECT+1+FROM+IPv6Ranges+WHERE+X%27', $14
         49        CONCAT                                           ~16     ~15, '%27+BETWEEN+%60start%60+AND+%60end%60'
         50        SEND_VAL                                                 ~16
         51        DO_ICALL                                                 
         52      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.35 ms | 1400 KiB | 19 Q