3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $class = 'Symfony\Bundle\FrameworkBundle\DependencyInjection\Configuration'; $prefix = 'Twig_'; for ($i = 0; $i < 1000000; ++$i) { if (0 === strpos($class, $prefix)) {} }
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 11
Branch analysis from position: 11
Jump found. Position 1 = 13, Position 2 = 4
Branch analysis from position: 13
Jump found. Position 1 = -2
Branch analysis from position: 4
Jump found. Position 1 = 10, Position 2 = 10
Branch analysis from position: 10
Jump found. Position 1 = 13, Position 2 = 4
Branch analysis from position: 13
Branch analysis from position: 4
Branch analysis from position: 10
filename:       /in/EWJdA
function name:  (null)
number of ops:  14
compiled vars:  !0 = $class, !1 = $prefix, !2 = $i
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 'Symfony%5CBundle%5CFrameworkBundle%5CDependencyInjection%5CConfiguration'
   4     1        ASSIGN                                                   !1, 'Twig_'
   6     2        ASSIGN                                                   !2, 0
         3      > JMP                                                      ->11
   7     4    >   INIT_FCALL                                               'strpos'
         5        SEND_VAR                                                 !0
         6        SEND_VAR                                                 !1
         7        DO_ICALL                                         $6      
         8        IS_IDENTICAL                                     ~7      0, $6
         9      > JMPZ                                                     ~7, ->10
   6    10    >   PRE_INC                                                  !2
        11    >   IS_SMALLER                                       ~9      !2, 1000000
        12      > JMPNZ                                                    ~9, ->4
        13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0