3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Limit imposed until https://wiki.php.net/rfc/uniform_variable_syntax will be accepted. eval(preg_replace_callback('/g\(.*[\'"]\)/',function($m){ return '"'.str_replace(array('()','"',"'",'(',')'),array('o',''),$m[0]).'"'; },file_get_contents(__FILE__,null,null,__COMPILER_HALT_OFFSET__)));__halt_compiler(); echo g('al'), PHP_EOL; echo g()('al'), PHP_EOL; echo g()()()('al'), PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qSHuP
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'preg_replace_callback'
          1        SEND_VAL                                                 '%2Fg%5C%28.%2A%5B%27%22%5D%5C%29%2F'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FqSHuP%3A4%240'
    6     3        SEND_VAL                                                 ~0
          4        INIT_FCALL                                               'file_get_contents'
          5        SEND_VAL                                                 '%2Fin%2FqSHuP'
          6        SEND_VAL                                                 null
          7        SEND_VAL                                                 null
          8        SEND_VAL                                                 321
          9        DO_ICALL                                         $1      
         10        SEND_VAR                                                 $1
         11        DO_ICALL                                         $2      
         12        INCLUDE_OR_EVAL                                          $2, EVAL
         13      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FqSHuP%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qSHuP
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 <array>
          3        SEND_VAL                                                 <array>
          4        FETCH_DIM_R                                      ~1      !0, 0
          5        SEND_VAL                                                 ~1
          6        DO_ICALL                                         $2      
          7        CONCAT                                           ~3      '%22', $2
          8        CONCAT                                           ~4      ~3, '%22'
          9      > RETURN                                                   ~4
    6    10*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FqSHuP%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.29 ms | 1395 KiB | 19 Q