3v4l.org

run code in 300+ PHP versions simultaneously
<?php <<<CONFIG packages: - "twig/twig: ~1.0" CONFIG; $loader = new Twig_Loader_Array(array( 'index' => "Hello {{ name }}!\n", )); $twig = new Twig_Environment($loader); echo $twig->render('index', array('name' => 'Melody'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MnolV
function name:  (null)
number of ops:  14
compiled vars:  !0 = $loader, !1 = $twig
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $2      'Twig_Loader_Array'
    8     1        SEND_VAL_EX                                              <array>
          2        DO_FCALL                                      0          
    7     3        ASSIGN                                                   !0, $2
   11     4        NEW                                              $5      'Twig_Environment'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
   13     8        INIT_METHOD_CALL                                         !1, 'render'
          9        SEND_VAL_EX                                              'index'
         10        SEND_VAL_EX                                              <array>
         11        DO_FCALL                                      0  $8      
         12        ECHO                                                     $8
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.13 ms | 1393 KiB | 13 Q