3v4l.org

run code in 300+ PHP versions simultaneously
<?php $code = array_map( function ($line) { return $line ? ' '.$line : $line; }, explode("\n", "something something2 something3") ); return sprintf( "if (%s)\n{\n%s}\n", implode(' && ', 'and or bla'), $code );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U9Von
function name:  (null)
number of ops:  21
compiled vars:  !0 = $code
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'array_map'
    4     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FU9Von%3A4%240'
    6     2        SEND_VAL                                                 ~1
    7     3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '%0A'
          5        SEND_VAL                                                 'something%0A++++++++++++something2%0A++++++++++++something3'
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                         $3      
    3     9        ASSIGN                                                   !0, $3
   11    10        INIT_FCALL                                               'sprintf'
   12    11        SEND_VAL                                                 'if+%28%25s%29%0A%7B%0A%25s%7D%0A'
   13    12        INIT_FCALL                                               'implode'
         13        SEND_VAL                                                 '+%26%26+'
         14        SEND_VAL                                                 'and+or+bla'
         15        DO_ICALL                                         $5      
         16        SEND_VAR                                                 $5
   14    17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $6      
         19      > RETURN                                                   $6
   15    20*     > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FU9Von%3A4%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 5
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U9Von
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1      > JMPZ                                                     !0, ->5
          2    >   CONCAT                                           ~1      '++', !0
          3        QM_ASSIGN                                        ~2      ~1
          4      > JMP                                                      ->6
          5    >   QM_ASSIGN                                        ~2      !0
          6    > > RETURN                                                   ~2
    6     7*     > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.22 ms | 1396 KiB | 21 Q