3v4l.org

run code in 500+ PHP versions simultaneously
<?php define('LG', 'fr'); $sql = " SELECT id, titre FROM contenu_trad WHERE lg = '".LG."' "; var_dump($sql); class Url { private $sql = " SELECT id, titre FROM contenu_trad WHERE lg = '".LG."' "; public function getSQL() { return $this->sql; } } $url = new Url; var_dump($url->getSQL());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z0umX
function name:  (null)
number of ops:  20
compiled vars:  !0 = $sql, !1 = $url
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'define'
          1        SEND_VAL                                                     'LG'
          2        SEND_VAL                                                     'fr'
          3        DO_ICALL                                                     
    4     4        FETCH_CONSTANT                                       ~3      'LG'
          5        CONCAT                                               ~4      '+SELECT+id%2C+titre+FROM+contenu_trad+WHERE+lg+%3D+%27', ~3
          6        CONCAT                                               ~5      ~4, '%27+'
          7        ASSIGN                                                       !0, ~5
    5     8        INIT_FCALL                                                   'var_dump'
          9        SEND_VAR                                                     !0
         10        DO_ICALL                                                     
   14    11        NEW                                                  $8      'Url'
         12        DO_FCALL                                          0          
         13        ASSIGN                                                       !1, $8
   15    14        INIT_FCALL                                                   'var_dump'
         15        INIT_METHOD_CALL                                             !1, 'getSQL'
         16        DO_FCALL                                          0  $11     
         17        SEND_VAR                                                     $11
         18        DO_ICALL                                                     
         19      > RETURN                                                       1

Class Url:
Function getsql:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z0umX
function name:  getSQL
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   FETCH_OBJ_R                                          ~0      'sql'
          1      > RETURN                                                       ~0
   11     2*     > RETURN                                                       null

End of function getsql

End of class Url.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.61 ms | 3051 KiB | 15 Q