3v4l.org

run code in 300+ PHP versions simultaneously
<?php function lorem($d) { $i = 2; if($d == true) { $i = $i + 10; } else { $i = $i * 10; } } mysql_connect('lorem'); echo lorem(true);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1FgLo
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL_BY_NAME                                       'mysql_connect'
          1        SEND_VAL_EX                                              'lorem'
          2        DO_FCALL                                      0          
   13     3        INIT_FCALL                                               'lorem'
          4        SEND_VAL                                                 <true>
          5        DO_FCALL                                      0  $1      
          6        ECHO                                                     $1
          7      > RETURN                                                   1

Function lorem:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1FgLo
function name:  lorem
number of ops:  10
compiled vars:  !0 = $d, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ASSIGN                                                   !1, 2
    4     2        BOOL                                             ~3      !0
          3      > JMPZ                                                     ~3, ->7
    5     4    >   ADD                                              ~4      !1, 10
          5        ASSIGN                                                   !1, ~4
          6      > JMP                                                      ->9
    7     7    >   MUL                                              ~6      !1, 10
          8        ASSIGN                                                   !1, ~6
    9     9    > > RETURN                                                   null

End of function lorem

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.67 ms | 1397 KiB | 14 Q